Split a CSV or Excel file

Split a large CSV or Excel file into smaller files: every so many rows, into a number of parts, by file size, or one file per value of a column. The header is repeated in each file.

Your files never leave your computer: they're opened and processed right here in your browser, and nothing is uploaded.

How to split a file

  1. Choose the CSV or Excel file (for a workbook, pick the sheet).
  2. Choose how to split it and check the number of files.
  3. Download: you get a ZIP with the parts, named after your file (orders-1.csv, orders-2.csv …), or one workbook with a sheet per part.

Values are copied unchanged, so leading zeros and long numbers in a CSV stay as they were. People usually split to get under a limit: Excel's 1,048,576 rows, an import that takes 5,000 rows at a time, or an email or upload size limit.

Doing it by hand

In Excel, select a block of rows, copy them to a new workbook with the header and save it; repeat for each part. With a filter on a column (Data → Filter) you can copy one value's rows at a time. On macOS and Linux, split -l 1000 data.csv part- splits a CSV every 1,000 lines, but only the first part gets the header, and a quoted value with a line break in it gets cut in two.

Questions

Is the header row repeated in every file?
Yes. Each part starts with the header row, so every file can be opened or imported on its own. Untick "First row is the header" if your file has none.
My file is too big for Excel. Can I still split it?
Yes. Excel stops at 1,048,576 rows, but this tool reads the CSV in your browser without that limit; splitting into parts of up to a million rows gives files Excel can open. The limit here is your computer's memory: files of a few hundred megabytes work in a desktop browser.
How does "by file size" work?
Rows are added to a part until the next one would take it past the size, measured as a UTF-8 CSV file with the header. Use it for upload limits, such as an import that accepts files of up to 10 MB. Rows are never cut in half.
Can I split by a column, one file per customer or region?
Yes: choose "One file per value of a column" and the column. Each file is named after its value and holds all rows with that value, in their original order.
Are my files uploaded?
No. The file is split in your browser, and the parts are zipped there too.