Updated 2026-11-08
CSV too big for Google Sheets? The 20 million cell limit
Google Sheets holds up to 20 million cells or 100 MB per spreadsheet file, and that cell count is divided across every tab in the workbook. Take the number of columns in your CSV, divide 20,000,000 by it, and you get the row count the import will survive. A 10-column export of 5 million rows is 50 million cells, so it cannot land in Sheets as it is. Splitting the file, cutting columns, or keeping the CSV in Drive and querying it elsewhere are the three routes that actually work.
The limit in rows, per column count
The 20 million cell ceiling comes from Google’s own Drive help page, which lists it alongside a 100 MB size cap for spreadsheets created in or converted to Google Sheets. Cells are the unit that runs out first for wide files, and rows for narrow ones. Leave a margin below the ceiling; the conversion needs working room and a file that sits exactly on the boundary tends to fail rather than succeed.
| Columns in the CSV | Rows that fit in one file | Cells |
|---|---|---|
| 5 | 4,000,000 | 20,000,000 |
| 10 | 2,000,000 | 20,000,000 |
| 15 | 1,333,333 | 20,000,000 |
| 20 | 1,000,000 | 20,000,000 |
| 30 | 666,666 | 20,000,000 |
| 50 | 400,000 | 20,000,000 |
Arithmetic from Google’s published limit of 20 million cells per spreadsheet. A header row counts as a row.
Where the import actually breaks
Dropping a CSV into Drive does not convert it. The conversion happens when you open the file with Google Sheets, and that is the step that meets the ceiling. Two other thresholds sit close by: a cell holding more than 50,000 characters is removed when a file is converted from Excel to Sheets, and Connected Sheets, the add-on that reads BigQuery data, caps pivot tables at 200,000 rows and extracts at 500,000 rows or 5 million cells. If you were planning to route around the limit that way, the route has its own limits.
A failed import is rarely loud. Sometimes Sheets returns an error, sometimes it opens a file that ends early, and sometimes the last rows are simply missing. Compare the row count in the sheet against the line count of the original file before you trust any analysis built on it.
Fix 1: split the file under the ceiling
Splitting keeps every row and is the least destructive option. Work out the cut first: for a 12-column file the ceiling is about 1.6 million rows per part, so a 9 million row export becomes six parts with room to spare. Split by row count rather than by file size, because size depends on how much text each row carries and a single wide text column can move the byte count far more than the row count.
Split a CSV by row count
The splitter takes a row count or a target size, writes numbered parts, and keeps the header row in each one. Nothing is uploaded to a server.
Fix 2: cut columns before you upload
Sheets counts cells, not rows, so removing columns buys rows directly. Halving a 40-column export to 20 columns doubles the row count that fits. Most exports carry columns nobody reads: internal IDs, audit timestamps, duplicated address fields. Deleting them in the CSV, before the upload, is faster than deleting them in the sheet after a partial import.
Fix 3: aggregate first, then open
If the question is a monthly total by region, the 5 million raw rows are not the answer; a few thousand grouped rows are. A pivot in a desktop tool, a short pandas script, or a database query produces a file small enough to open anywhere. This is usually the better path for reporting, because the heavy file stays out of the browser entirely.
Fix 4: keep the CSV in Drive, query it elsewhere
Google Sheets is a spreadsheet, not a database. Files past the cell ceiling belong in BigQuery, DuckDB, or a local SQLite table, all of which read the CSV in place and return only the rows you ask for. The cost is setup time; the gain is that a 40 GB export stops being a problem you solve once a week.
Excel’s limits, for comparison
Excel documents 1,048,576 rows by 16,384 columns per worksheet, so a tall CSV hits the row cap long before it hits anything else. Files that are too wide for Excel and files that are too tall for Sheets are different problems, and the fix for both starts with knowing which dimension you are over. Our guide to opening a CSV that is too big for Excel covers the row-cap case; the Excel row limit explained goes through why the cap exists.
Before you upload: a five-point check
- Count the columns in the header row.
- Divide 20,000,000 by that number to get your row ceiling.
- Count the lines in the file (wc -l) and compare.
- Check the largest single cell; anything past 50,000 characters will be dropped on conversion.
- Split or trim until both numbers are inside the limit, then upload.
Frequently asked questions
How many rows can Google Sheets hold from a CSV?
It depends on the column count, because the limit is counted in cells: 20 million cells or 100 MB per spreadsheet, whichever comes first. Divide 20,000,000 by the number of columns in your file. A 10-column CSV tops out near 2 million rows, a 20-column CSV near 1 million, and a 50-column CSV near 400,000.
Why does the import stop partway through?
Google Drive uploads the file, then converts it to the Sheets format when you open it. The conversion is where the ceiling applies. A file above 20 million cells or 100 MB either fails or arrives truncated, and any single cell longer than 50,000 characters is dropped during the Excel-to-Sheets conversion.
Is the limit per sheet or per file?
Per spreadsheet file. Additional tabs do not reset the counter: the 20 million cells are shared across all sheets in the workbook, so splitting a 30 million cell file into three tabs does not help.
Does Excel have the same limit?
No, and the difference matters when you choose where to open the file. Microsoft documents a worksheet limit of 1,048,576 rows by 16,384 columns. That is 17.2 billion cells in theory, far above Sheets, but the row cap bites much earlier than the cell cap for tall files.
What is the fastest fix for a 3 GB CSV?
Split it into files that stay under the cell ceiling for their column count, then upload the part you actually need to analyse. Splitting keeps every row; opening it in a spreadsheet viewer or a database is the other option if you need to query across the whole file at once.
Related reading
Related reading
File Operations — other guides that pair well with this one.
- How to Compress a CSV File
- CSV File Size Limit: How Big Can a CSV Get?
- Excel Says the File Format and Extension Don't Match. What Now?
- CSV Files Lose Formatting After Save: Leading Zeros, Dates, Long Numbers
Browse all guides in the NoCodeCSV blog.