CSV Splitter for Large Files

: Split a large CSV file into smaller files by row count, number of parts or size, with the header in each part
loading splitter…

Cut a CSV file that is too big to open or upload into smaller files: a set number of files, a fixed number of rows per file, or a maximum size in MB. The header row is copied to the top of every part, rows are never cut in half, and the file is read in pieces in this tab, so a multi-gigabyte export works without uploading it or loading it into memory.

  1. Drop the file on the box, or click it to choose one. The whole file is scanned once with a progress bar; then you see its size, the number of data rows, the line endings (LF, CRLF or CR), whether it has a UTF-8 BOM, and the first ten column names.
  2. Under split, choose into N files for equal row counts, every N rows for a fixed number of rows per file, or at most N MB per file for a size limit.
  3. Leave first row is a header and repeat the header in every file ticked so each part opens with the column names, or untick them for a file without a header. If the file starts with a BOM, start every file with the BOM keeps it on each part, which helps Excel read accented letters.
  4. Check the list of parts with their row counts and sizes, then press download beside one, download all (.zip) for every part in one zip, or, in Chrome and Edge, save to folder to write the files straight into a folder you pick.

Seven orders split into 3 files with the tool's own planner. The seven rows share out as 3, 2 and 2 (the first parts take the remainder), the quoted notes that contain line breaks stay inside their rows, and each part starts with the header. The byte range is where the part's rows sit in the original file.

Input
id,customer,note
1,Ada,"call before delivery"
2,Ben,"leave at door
ring twice"
3,Cam,
4,Dee,"says ""fragile"""
5,Eve,
6,Fay,"side gate,
then left"
7,Gus,
Output
── orders-part-01.csv · 3 rows · bytes 17–86 · 86 bytes
id,customer,note
1,Ada,"call before delivery"
2,Ben,"leave at door
ring twice"
3,Cam,

── orders-part-02.csv · 2 rows · bytes 86–118 · 49 bytes
id,customer,note
4,Dee,"says ""fragile"""
5,Eve,

── orders-part-03.csv · 2 rows · bytes 118–154 · 53 bytes
id,customer,note
6,Fay,"side gate,
then left"
7,Gus,

How do I split a large CSV file into multiple files?

Open it here, choose into N files, every N rows or at most N MB per file, and press download all (.zip) or download the parts one by one. The file is read in this tab, so a multi-GB CSV does not have to be uploaded.

Will a row be cut in half?

No. Parts are cut only at the end of a row, and a line break inside a quoted field does not count as the end of a row, so multi-line values stay whole. In size mode the cut moves back to the last complete row that fits.

Does each file keep the header?

Yes, with repeat the header in every file ticked (the default) every part starts with the first row of the original. Untick it to keep the header in the first part only, or untick first row is a header if the file has none.

Can I split a CSV file that is too big for Excel?

Yes. Excel stops at 1,048,576 rows; every N rows with N set to 1000000 gives files that each fit in a sheet with the header. The size of the original file only affects how long the first scan takes.

Runs entirely in your browser. Nothing is uploaded.