📦 File Operations · 6 min read
How Big Can a CSV Get?
A CSV has no maximum file size written into the format. RFC 4180, which registers the text/csv type, defines the format with no byte ceiling, so a CSV can run to hundreds of gigabytes if the disk and the reader keep up. The caps people hit are set elsewhere: upload forms, spreadsheet apps, filesystems, and their own RAM. We wrote a 116.6 MB CSV and streamed it back in 1.32 seconds at 11 MB of memory, while loading the same file into memory at once took 507 MB.
The number that actually breaks a file is rarely its size on disk. It is how much memory the tool needs to hold it, which is why two programs can give you opposite answers about the same file.
The format sets no size limit
RFC 4180 is short and, on this question, silent. Its MIME registration lists exactly two optional parameters, charset and header. No row count, no byte count, no ceiling. The document registers text/csv as plain text, and plain text has whatever length you give it.
So when a tool refuses a file for being too large, that limit belongs to the tool, and it is worth finding out which one before you start deleting rows that were never the problem.
What we measured: a 116.6 MB CSV
We generated a CSV with 2,000,000 rows and five columns, which came to 116.6 MB on disk, then read it back two ways on a machine with 4 vCPUs and 16 GB of RAM, on 2026-11-14.
| How it was read | File size | Time | Peak memory |
|---|---|---|---|
Streaming (csv.reader) | 116.6 MB | 1.32 s | 11 MB |
| Whole table in memory (pandas) | 116.6 MB | 8.10 s | 507 MB |
The same 116.6 MB file cost 11 MB of memory to read one way and 507 MB the other. The gap is the point: a full-table loader stores every cell as a separate object, and on this file that worked out to about 53 bytes of memory per cell. Size on disk and size in memory are two different things, and memory is the one that crashes programs.
Where the size limits actually sit
Once you stop expecting a limit in the file, the practical question is which layer is refusing you. These are the ones that show up in most reports.
| Layer | Limit | What you see |
|---|---|---|
| CSV format (RFC 4180) | none stated | the file is fine |
| Upload forms & APIs | set per service | “file too large” with no other explanation |
| Excel 64-bit | no hard cap, memory-bounded | slows down, then the app may stop responding |
| Excel 32-bit | 2 GB address space | out-of-memory on a file the 64-bit build opens |
| Google Sheets | 100 MB / 20,000,000 cells | import refuses or truncates |
| FAT32 volume | 4 GB minus 1 byte | save fails near the ceiling |
The Excel figures come from Microsoft's Excel specifications and limits page, which notes that 32-bit Excel works inside 2 GB of virtual address space shared by Excel, the workbook and any add-ins, while the 64-bit build has no hard file size limit and is bounded only by available memory. Google's storage help pages list the 100 MB cap for an imported spreadsheet. Microsoft's FAT32 guidance documents the 4 GB minus 1 byte single-file ceiling.
The real limit is memory, not bytes
A CSV's danger is not how many bytes it takes up but how many cells it holds, because memory scales with cells. On our file the rate was about 53 bytes per cell, so a 116.6 MB CSV needed 507 MB of RAM to load fully, and a file only a few times larger would exhaust a laptop before it ever finished opening. That is why the byte count on disk is a poor predictor of whether a file will open.
Streaming sidesteps the whole problem. A reader that handles one row at a time keeps memory flat no matter how large the file gets, which is what our 1.32-second, 11 MB run demonstrated. The trade-off is that you cannot see the whole table at once, which is usually fine for the kind of work a huge CSV demands.
How to get a CSV under a size limit
- Find out which limit you are hitting. An upload form says bytes, Excel says memory or grid, Google Sheets says megabytes and cells. The fix changes with the answer.
- Compress it if the cap is bytes. gzip typically shrinks a CSV to about a fifth of its size, which gets a 116 MB file under almost any upload cap. The catch is that the receiving tool has to accept a
.gzor.zipfile. - Split it if the cap is rows or cells. A smaller file does not help a row or cell limit, because the data is still all there. Splitting keeps the header on every part and stays readable.
- Move it to a database. A database has no spreadsheet grid and streams the load, so it takes files a worksheet cannot.
If the cap is bytes, compressing the file is the fastest fix, and why a CSV is bigger than an XLSX explains why text compresses so well. The row-count side of the same question is covered in how many rows a CSV can have, and the CSV splitter handles the case where the limit is rows rather than bytes.
Frequently Asked Questions
Is there a maximum CSV file size?
No. RFC 4180, which registers the text/csv type, defines the format with no byte ceiling, so the size a CSV can reach is set by the storage, the reader's memory and the upload form in front of it. In our test a 116.6 MB CSV streamed back in 1.32 seconds at 11 MB of memory, while loading the same file into memory at once took 507 MB.
How big can a CSV file be?
As big as your disk and the reading program allow. The format itself has no limit, so a CSV can run to hundreds of gigabytes if you write it to a filesystem and read it with a streaming parser. What fails first is usually not the file but the tool asked to hold the whole thing in memory, or an upload form with a fixed megabyte cap.
What is Excel's CSV file size limit?
It depends on the build. Microsoft's specifications page notes that 32-bit Excel works inside 2 GB of virtual address space shared with the workbook and any add-ins, while the 64-bit build has no hard file size limit and is bounded only by available memory and system resources. So the same CSV can open in 64-bit Excel and fail in the 32-bit version.
How big a CSV can Google Sheets import?
Google's storage help pages cap an imported spreadsheet at 100 MB, and a spreadsheet holds at most 20 million cells. A file over 100 MB is refused outright, and a file under 100 MB can still be turned away if its row and column count adds up to more than 20 million cells.
What is the FAT32 file size limit for a CSV?
On a FAT32 volume a single file cannot exceed 4 GB minus 1 byte, which Microsoft documents in its FAT32 filesystem guidance. That is a property of the disk format rather than the CSV, so the same file saves fine on exFAT or NTFS but refuses to save on a FAT32 USB drive near that ceiling.
How do I shrink a CSV to fit under an upload limit?
Two routes, and they fix different problems. If the limit is bytes, compress the file: gzip typically shrinks a CSV to about a fifth of its size, and a 116.6 MB CSV would drop well under most caps. If the limit is rows or cells, compression does not help because a smaller file still holds the same data; split the file instead so each part stays under the ceiling.
Shrink the File, Not the Data
If the limit is bytes, compression gets it under the cap. If the limit is rows or cells, the splitter cuts the file into parts that keep the header and stay readable.
Related reading
File Operations — other guides that pair well with this one.
- Free CSV Viewer Online
- Import CSV to SQLite
- Why Won't My CSV Open Correctly in Excel?
- CSV Delimiter in Python: csv.reader, Sniffer and Dialect
Browse all guides in the NoCodeCSV blog.