How to split a CSV file
- Drop a CSV file onto the box above, or click it to choose one. The tool counts the rows and shows the first few lines so you can check the columns.
- Choose how to split it: Rows per file, Number of files, File size, or Column value (see the options below).
- Leave First row is a header ticked if your file has column names. The header is copied to the top of every new file.
- Click Split CSV, then download the files one by one or click Download all as ZIP.
The four ways to split:
- Rows per file: for example 10,000 rows in each file. Excel maximum makes files that just fit on one Excel sheet.
- Number of files: for example 4 files of roughly equal length.
- File size: every file stays under a size limit, such as 10 MB for an upload form.
- Column value: one file for each value in a column, such as one file per state, store, or month.
Your file is split by your browser and never leaves your device. Because the file is read in pieces, files of several gigabytes can be split, even files that are too large to open in Excel.
How the splitting works
- Rows are never cut in half. A row that has a line break inside a quoted field, such as a multi-line address or comment, stays in one piece and counts as one row.
- The data is copied exactly. Except in Column value mode, every new file is an exact copy of a section of your original, so quotes, number formats, leading zeros, dates and line endings stay the same. Nothing is rounded or reformatted.
- Order is kept. Rows stay in their original order. In Column value mode, each file holds the matching rows in the order they appeared.
- Blank lines are not counted as rows. They stay where they were in the file, except in Column value mode, where they are left out.
- File size uses 1 MB = 1,000,000 bytes, so each file stays under the limit whether a website counts megabytes in thousands or in 1,024s. Each file is cut between rows, so most are a little smaller than the limit. A single row larger than the limit goes into a file on its own.
- Number of files gives each file the same number of rows, plus or minus one.
- Encoding: if your file starts with a UTF-8 byte order mark (BOM), which Excel adds when you save as "CSV UTF-8", every new file gets one too, so Excel keeps showing accented letters and other non-English characters correctly.
The delimiter is detected from the first line. Commas, semicolons (common in European versions of Excel), tabs and pipes are supported, and you can choose one yourself if the guess is wrong.
Why split a CSV file?
- Excel's row limit. An Excel worksheet holds at most 1,048,576 rows. When you open a larger CSV, Excel shows a "File not loaded completely" warning and leaves out the rest of the rows. Choose Excel maximum to get files that each open completely, with the header row included.
- Import limits. CRMs, email marketing tools, ad platforms and online stores often limit how many rows or megabytes one import can have. Split by rows or by file size to stay under the limit.
- Sharing. Email attachments and chat apps limit file size. Smaller files are easier to send and open.
- Sorting data into groups. Column value turns one export into a file per region, salesperson, product category or month.
Frequently asked questions
Is my file uploaded to a server?
No. The file is read and split by your browser on your own computer or phone. Nothing is sent to QuickToolsBox or anyone else, which makes the tool safe for customer lists, orders and other private data.
What is the largest file I can split?
There is no upload limit because nothing is uploaded. Files of several gigabytes work on a computer. The limit is your device's memory, so phones and tablets may struggle with very large files. A ZIP file can hold at most 4 GB, so if the split files add up to more than that, download them one by one.
Will the header row be in every file?
Yes, as long as First row is a header is ticked. Untick it if your file has no header, so the first row is treated as data.
How many rows can Excel open?
An Excel worksheet holds at most 1,048,576 rows, including the header row. The Excel maximum preset puts 1,048,575 data rows in each file when the header is copied in, so every file fits on one sheet.
Can I split a CSV by the values in a column?
Yes. Choose Column value and pick the column. You get one file for each different value, named after that value. Rows with an empty value go into a file ending in _blank. A column can have up to 1,000 different values.
Does splitting change my data?
Rows by count, number of files and file size copy each section of the file byte for byte, so nothing changes. Column value also copies each row exactly, but if the last row of the file has no line break at the end, one is added so it doesn't join onto the next row.
Can I split a TSV, TXT or semicolon-separated file?
Yes. Tab-separated, semicolon-separated and pipe-separated text files work the same way, and the new files keep your original file extension. Excel workbooks (.xlsx) need to be saved as CSV first.
Related tools
To turn a PDF bank statement into a spreadsheet, use the Bank Statement Converter. To check or tidy JSON data, use the JSON Formatter. To compare two versions of a file, use the Diff Checker.