Split a large CSV into smaller files

Split a huge CSV into Excel-sized files of up to 1,048,575 rows each. Every file keeps the header row. Download separate files or one zip. Nothing is uploaded.

Your file never leaves your browser.

How splitting works

A CSV with more than 1,048,576 rows will not fit in a single Excel sheet. Splitting it into several smaller files is the simplest fix: each piece opens normally in Excel, Google Sheets or any other program.

Choose how many data rows each file should hold. The default is 1,000,000, and the tool never allows more than 1,048,575, so every piece fits in Excel together with its header row. The header is copied to the top of every file. Rows are counted properly, so a quoted value that contains a line break stays in one piece and is never cut in half.

The file is streamed: it is read in small chunks and written straight to the output files, so the whole file never has to fit in memory. A 1 GB file splits in well under a minute on a typical laptop. When it finishes you can download the pieces one by one or as a single zip file.

All of this runs in your browser. Your file is not uploaded, and the output files are created on your own computer.

Frequently asked questions

How many rows should each file have?

For Excel, anything up to 1,048,575 data rows works, because the header takes the first row. The default of 1,000,000 leaves a little room. Choose a smaller number if the files are going into a tool with its own import limit.

Does every file get the header row?

Yes, when the original file has a header, it is repeated at the top of every piece. If the first row is not a header, nothing is added.

Will a row with a line break inside quotes be split in half?

No. The splitter understands CSV quoting, so a quoted value that spans several lines is kept together and counted as one row.

Is there a size limit?

Separate files have no limit beyond your free disk space. The single zip download is limited to 4 GB; for bigger results choose separate files.