Split a large CSV into smaller files by row count, number of files, column value or maximum size, with the header kept and every row accounted for.
Initializing in your browser…
Open a CSV as a sortable, searchable table, edit cells, rows and columns with undo, and download the result. Runs in your browser.
Convert CSV to JSON or JSON back to CSV, keeping zip codes, IDs and quoted text exactly as written and listing anything the conversion changes.
Clean up and standardise a CSV file: change the delimiter, quoting and line endings, trim spaces, fill short rows and remove repeats, with a check against RFC 4180.
A shop's order export has 2,400 rows and a region column. The regional managers each want only their own orders, and the upload form for the reporting system accepts files of 50 KB at most.
orders.csv (2,400 rows, 109 KB)
order_id,order_date,region,product,quantity,amount SO-10001,2026-01-01,South,Monitor stand,2,79.98 SO-10002,2026-01-01,North,Desk lamp,3,102.00 SO-10003,2026-01-01,East,Webcam,2,119.90 ... SO-12400,2026-10-27,East,Mechanical keyboard,3,267.00
Two splits
By column value: region orders_South.csv 484 rows 23,446 bytes orders_North.csv 705 rows 33,872 bytes orders_East.csv 735 rows 34,473 bytes orders_West.csv 476 rows 22,419 bytes Rows in 2,400, rows out 2,400 By maximum size: 50 KB (51,200 bytes) orders_part1.csv 1,079 rows 51,171 bytes orders_part2.csv 1,073 rows 51,157 bytes orders_part3.csv 248 rows 11,827 bytes Rows in 2,400, rows out 2,400
The region split writes the files in the order each region first appears in the data, and the four row counts add up to the 2,400 that went in. The size split fills each file with whole rows until the next row would cross 51,200 bytes, which is why the first two files stop 29 and 43 bytes short of the limit and hold slightly different numbers of rows. Each size includes the repeated header, the quoting, the CRLF line endings and the three-byte byte order mark, so it is the size the upload form will see.
Cut a CSV into pieces by the number of rows per file, a fixed number of files, the value in a column, or a maximum file size. Every file keeps the header, the sizes shown are the exact sizes you will download, and the page confirms that every row landed in exactly one file.
Four ways to split. Rows per file is the simplest: 1,000 rows in each file, in the original order, with the last file holding whatever is left. Number of files spreads the rows as evenly as they divide, so 2,400 rows into 7 files gives six files of 343 and one of 342. By column value writes one file per distinct value of a column you choose, such as one file per region, store or month, named after the value. Maximum size fills each file with whole rows until the next row would take it over the limit you set in kilobytes.
Sizes you can rely on. Upload forms, email attachments and import tools usually have a hard size limit, so the maximum-size mode measures each file exactly as it will be written: UTF-8 bytes, quotes around fields that need them, line endings, the repeated header and the byte order mark. No file goes over the limit. The one exception is a single row that is larger than the limit on its own; a row cannot be cut in half, so it gets a file of its own and the page warns you.
Nothing lost, nothing doubled. Above the file list the tool shows the number of data rows that went in and the number that came out across all files, and they match. File names in column mode keep accents, spaces and non-Latin letters, and only the characters a file system refuses (such as a slash or a colon) are replaced. If two values would still produce the same name, for example A/B and A:B, the second file gets a number and a note tells you. Rows with an empty value go to their own file instead of being dropped, and they stay separate from rows whose value is literally the word empty.
Headers and names. The header row is repeated at the top of every file by default, which is what spreadsheets and importers expect. Switch that off and it appears only in the first file, so the set of files still holds it exactly once. Under More options you can change the naming pattern; the default numbers parts as part01, part02 and so on, so they sort correctly in any file listing.
Output and privacy. Every file is a standard CSV with a UTF-8 byte order mark, so Excel shows accented text correctly, and CRLF line endings as RFC 4180 specifies. Download everything as one compressed ZIP, or open any file in the list to preview its first rows and save it on its own. The splitting happens in your browser and the file is never uploaded.
A CRM or email platform that accepts files of 5 MB at most: set the maximum to 5000 KB and every file will be under it, measured exactly.
Excel stops at 1,048,576 rows. Split a bigger export into files of 1,000,000 rows, each with the header, and open them one at a time.
Split a company-wide report by the department or region column and send each team only its own rows.
Some systems time out on large imports. Split the file into 10 or 20 equal parts and load them one after another.
The 2,400-row sample split by its region column gives four files: East with 735 rows, North with 705, South with 484 and West with 476, adding up to 2,400.
The same sample, 109 KB in total, split with a 50 KB maximum gives three files of 51,171, 51,157 and 11,827 bytes. 50 KB is 51,200 bytes, so both full files are just under it.
Asking for 7 files from 2,400 rows gives six files of 343 rows and one of 342, because 2,400 does not divide evenly by 7.
A limit. Each file takes whole rows until the next one would push it over, so no file is larger than the number you enter. The only exception is a single row bigger than the limit by itself, which goes into a file of its own with a warning, since a row cannot be split.
Rows have different lengths and are never cut, so each file stops at the last whole row that fits. The last file is usually smaller because it holds whatever is left.
Yes, by default. Switch off Repeat the header in every file and the header is written only in the first file, which is useful when you plan to join the pieces back together later.
They go into a file of their own named with empty-value, so nothing is dropped. Rows whose value is the word empty stay in a separate file, and a row too short to have that column at all is grouped with the empty values and mentioned in a note.
Yes. North and north become two files, because they are different text. If that is not what you want, tidy the column first with the CSV Transformer or the Search and Replace tool.
You get one file per row instead of empty files, and a note explains how many were written.
As many as the split needs. The list on the page shows the first 200, and the ZIP always contains all of them.
No. The file is read and split by your browser, and the ZIP is built on your device.
Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.