The quick answer

Set the number of files, 2 to 100, and the splitter divides your rows: 10,000 data rows into 7 parts means 6 parts of 1,429 rows plus a final 1,426, with the header row stamped on every part (part-01.csv through part-07.csv). Parsing tracks quote state, so quoted multi-line fields never get cut. Nothing uploads.

The 25 MB wall

Gmail caps attachments at 25 MB, and plenty of import wizards choke lower than that. Somewhere out there is a limit with your name on it, and the day you meet it you will be holding a 60 MB orders export that has to travel by email before noon.

Splitting a CSV sounds like the simplest possible job, cutting every N lines, until you do it with a text editor and discover that CSV rows are not lines. Quoted fields wrap around commas and newlines, a record can legally span three physical lines, and the cut you made at line 1500 just bisected a customer's shipping note. Both halves still open in Excel, and the damage surfaces two weeks later as a mysterious row count mismatch.

This splitter does the operation the way the format demands: parse the CSV properly, count real records, cut only at record boundaries, and stamp the header row on top of every chunk so each piece stands alone. It runs entirely in your browser, which matters for exactly the files that hit size limits because they are usually the sensitive ones, and hands you the parts as individual downloads, part-01.csv through part-NN.csv, each an independently valid CSV.

Splitting a file in five steps

The splitter sits at the top of the page. The standard run:

  1. Load the CSV

    File picker for big exports, paste box for small ones; the picker reads .csv and .txt. The parse happens instantly, so a glitchy preview is visible before you split.

  2. Set the number of files

    Anywhere from 2 to 100. The rows-per-file card computes the balance live, 10,000 rows at 7 parts shows ~1,429, so you can pick the part count that fits your import batch or attachment cap.

  3. Read the plan

    The card shows rows per file before anything is written, and the button reads Split into 7 files for a 7-part job. An uneven final part is expected and visible up front: with 10,000 rows and 3 parts, part-3 simply carries the remainder.

  4. Split and download

    One click writes the parts, part-01.csv through part-07.csv, each stamped with the original header row, each with its own download button and its data-row count shown. A note under the results states that every file keeps the original header row and each chunk stands alone as a valid CSV.

  5. Verify, then send

    Sum the per-file row counts and compare against your input's data rows; they must match exactly. Then check the largest part against the actual limit you are fighting before anything is attached.

The verify step deserves its emphasis. Sending seven email attachments and discovering chunk four was the one over the recipient's limit, after the others imported, is a self-inflicted wound the rows-per-file card exists to prevent.

The arithmetic of a clean split

Part-count splitting is integer arithmetic, and seeing it written out removes the mystery. With R data rows in the input and C as your number-of-files setting, every full part carries the ceiling of R ÷ C rows, and the final part carries whatever remains. The complete formula set:

per = ceil(R / C), rows in every full part (C = number of files)
last = R - (C - 1) x per, rows in the final part
lines per file = 1 header + per data rows (last: 1 + last)
example: R = 10,000, C = 7 -> per = 1,429, last = 1,426

Byte caps translate into part counts with one division. Average row length is total bytes ÷ data rows; your minimum part count is file size ÷ target size, rounded up. A 2.4 MB export against a 500 KB upload form needs at least 5 parts (2.4 MB ÷ 0.5 MB = 4.8, so 5), and each part then carries 2,000 rows and roughly 480 KB. When a notes column makes some rows ten times longer than average, trust the row math and leave headroom: the byte figure is an estimate, the row figure is exact.

The number-of-files control is also a fair-division mode. A recipient team of nine, each importing their slice, sets 9 parts and the tool distributes rows as evenly as integer math allows. With 10,000 rows and 9 parts, per = ceil(10,000 ÷ 9) = 1,112, so eight parts carry 1,112 rows and the ninth carries the remaining 1,104. No slice differs from another by more than a few rows.

Worked example: 10,000 rows, seven files

The canonical job: a 2.4 MB export with one header row and 10,000 data rows, going to a CRM import that accepts 1,500-record batches. Ceil(10,000 ÷ 1,500) = 7, so set the number of files to 7 and every part comes out at 1,429 rows or fewer, comfortably inside the batch cap. Names and limits here are disguised; the arithmetic is real.

10,000 rows, 7 parts, every number checkable

Input

orders.csv, 10,001 lines (1 header + 10,000 data rows), 2.4 MB total
Average row length: 2,400,000 ÷ 10,000 = 240 bytes
Number of files: 7

Output

rows per file = ceil(10,000 / 7) = 1,429

part-01.csv ... part-06.csv: 1,429 data rows each (1,430 lines with header)
part-07.csv: 1,426 data rows (1,427 lines with header)

Verification: 6 x 1,429 + 1,426 = 10,000 data rows, matching input exactly.
Total downloaded lines across files: 7 headers + 10,000 rows = 10,007.
Estimated size per part: 2.4 MB ÷ 7 ≈ 343 KB, far under any attachment cap.

Check the arithmetic yourself, because it is the kind you should demand from any splitter: with per = ceil(10,000 ÷ 7) = 1,429, six full parts carry 6 × 1,429 = 8,574 rows, leaving 1,426 for part-07. Seven headers travel with the download. Nothing else changes; the first line of part-02.csv is row 1,430 of the original, unrenumbered and untouched.

Now the same file against an attachment cap, because part count and bytes interact. Target: each part under 500 KB for an upload form. 2.4 MB ÷ 500 KB = 4.8, so round up to 5 parts; each carries 2,000 rows and lands near 480 KB. The rounding direction matters, since 4 parts would average 600 KB and bust the cap, and a chunk slightly under target is fine while a chunk over target defeats the purpose.

Headers, quoted fields, and the line-break trap

The line-break problem is the subtle one. CSV records are separated by line breaks, but a field wrapped in double quotes may contain a line break as data. A customer note reading agreed to the terms, see attached, spread across two physical lines inside quotes, is one field of one row. The splitter's parser tracks quote state character by character, so it counts that as one record and never cuts inside it. The naive approach, splitting every 1,500 newline-delimited lines the way quick scripts and the split utility do, slices through the middle of the quoted note and produces two files that no standard reader can parse. If your file has no quoted newlines, both approaches agree; if it has even one, only the parser-aware approach is correct, and you generally cannot know without reading the file.

Who splits CSVs, and what for

The splitter's audience is anyone whose data has to fit through a pipe narrower than the file.

  • Operations staff emailing daily exports through attachment limits, usually as a set of parts rather than one giant compressed file, because recipients want importable pieces.
  • CRM and ERP administrators feeding import wizards that cap records per run, where 1,500-row batches turn a failed 60,000-row import into a 40-step checklist that actually completes.
  • Analysts working around Excel's 1,048,576-row worksheet ceiling, splitting monster exports into spreadsheet-sized pieces rather than reaching for a database.
  • Researchers sharing datasets with collaborators whose institutions block file-sharing services, leaving email as the only sanctioned channel.

The common shape is a transfer constraint that arrived from outside, imposed by an email system, an import wizard or an institutional policy. Splitting is not a data transformation, since the data does not change; it is packaging. That is also why the tool refuses to renumber or reformat anything.

Your file never touches a server

The files that need splitting tend to be the files you least want to hand around: full customer exports, payroll dumps, complete transaction histories. An upload-based splitter means the complete sensitive file goes to someone else's disk, gets cut there, and downloads back, a full round trip through a third party for an operation your own machine does faster. This tool reads the file with the browser's local File API, splits it in memory, and writes each part out directly, so there is no upload wait, no queue and no terms-of-service paragraph about how your data is briefly retained. For people in restricted networks, hospitals, banks and government offices, the exact places with the attachment limits, that is the reason the tool exists in this form.

Frequently asked questions

The questions that arrive whenever someone meets a size limit, with the exact behavior in each answer.

Does every output file keep the header row?

Yes. Each chunk starts with the original header row exactly as it appeared, so every file is independently importable: open any one of them in Excel, a database import wizard or another tool, and the columns resolve correctly. The header is copied, never invented, and the tool states it under the results: every file keeps the original header row, and each chunk stands alone as a valid CSV.

Can I split by file size instead of row count?

Not directly; the control is the number of files, which keeps the row math exact. To hit a byte cap, divide file size by target size and round up: a 2.4 MB export under a 500 KB limit needs 5 parts, each near 480 KB. Cuts always land on record boundaries regardless, because a byte-precise split would slice through quoted fields, which is corruption, not splitting.

What if my CSV has line breaks inside quoted fields?

Those are handled correctly, and this is the splitter's main technical advantage over naive alternatives. A quoted field containing a newline is one field in one row, so the parser tracks quote state and only counts a new row when a record actually ends. Scripts that split on every line break will silently corrupt such files: chunk boundaries land mid-field and both output files become unparseable.

How many parts can it create?

2 to 100 per run. The control holds a minimum of 2 and is built for a maximum of 100, and each part gets its own download button with its data-row count shown. For most jobs, 5 to 50 parts, everything is instant. If you genuinely need a thousand pieces, the honest answer is a script.

Does splitting change or renumber my data?

No. Rows are copied verbatim, in original order, into consecutive chunks, with no renumbering, no reformatting and no delimiter conversion. The only thing the tool adds is the header line at the top of each file. Chunk one ends with row 1500, chunk two begins with row 1501, always.

How large a file can it split?

Files in the tens of megabytes split in seconds, and the practical limit is your machine's memory rather than any quota, because the file is parsed in your tab before the parts are written. Exports that make spreadsheet software visibly sweat, the kind with hundreds of thousands of rows, are routine jobs here.

Can it split files with semicolons, tabs or other delimiters?

Yes, with a caveat. Records end at line breaks no matter which delimiter the file uses, so tab- and semicolon-separated files split at correct row boundaries with their separators intact. The tool is built for comma CSV, and a tab-delimited field that happens to contain a comma gets quoted on output, so convert the delimiter first if the parts need separate columns.

Is my file uploaded to split it?

No. The file is read locally with the browser's File API, the parts are assembled in memory, and each one downloads directly. Nothing is transmitted, so a 200 MB export crosses no network boundary at any point, which is both faster and the only sane design for the sensitive files that usually need splitting.

Tools that go well with this one

Splitting is one step of a packaging job, and these tools sit on either side of it.

  • CSV Deduplicator: run chunks back through it after teammates return edited slices, to catch rows that drifted between parts during cleanup.
  • CSV Data Anonymizer: strip names, emails and phones before the file gets split into pieces that travel by email.
  • CSV Filter Rows: cut the file down to the rows worth shipping before splitting, so every part is smaller.
  • CSV to JSON Converter: turn each part into JSON when the receiving system wants records rather than rows.

References

Format specifications and the database import documentation referenced above:

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.