How to split a file
- Choose the CSV or Excel file (for a workbook, pick the sheet).
- Choose how to split it and check the number of files.
- 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.
Related tools
- Merge CSV or Excel Files Merge several CSV or Excel files, or the sheets of a workbook, into one. Columns are matched by name. Free, and your files never leave your computer.
- CSV to Excel Converter (XLSX), Keeps Leading Zeros Convert CSV to Excel XLSX online without losing leading zeros, long numbers or dates. Detects the delimiter and encoding. Free; the file stays on your computer.
- Excel to CSV Converter, All Sheets Convert Excel (XLSX, XLS, ODS) to CSV online: one sheet, or every sheet as its own CSV in a ZIP. UTF-8, any delimiter. Free; nothing is uploaded.