Skip to content
UniKit

CSV splitter

Split a large CSV into smaller files by number of data rows — with quote-aware row splitting (newlines inside quoted fields never break a record), an optional repeated header row and a custom part separator, all local.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

CSV content

Rows are split as text: fields are not parsed and nothing is rewritten. Newlines inside double quotes never end a record.

Split result

Parts are separated by the separator line — split on it to get the individual files.

Enter CSV to split it

Data rows: 0 · Parts: 0 · Rows per part: 0

What this tool does

  • Cut a 50k-row export into 1000-row parts so a system with an import limit can take them in batches
  • Break a CSV into smaller files that are easier to email or version
  • Repeat the header row in every part so each file still explains its own columns

Example

Input

a,b
1,2
3,4
5,6

Output

a,b
1,2

--- PART ---

3,4
5,6

The page pre-fills two rows per part (the function default is 10) and no header repetition: the four data rows become two parts separated by "--- PART ---".

Frequently asked questions

Can quoted fields be broken by the split?

No. Row splitting is quote-aware: a newline inside double quotes does not end the record, so a field such as "line one\nline two",2 stays in a single row. Commas inside fields are irrelevant because the tool only groups rows and never parses fields. Double quotes follow CSV convention, where "" means an escaped quote.

What does the header switch do?

When on, the first row is treated as a header: data rows are counted from the second row and every part repeats that header line at the top, so each part can be opened or imported on its own. It is off by default, in which case the first row is split like any other data row.

How are the separator and line endings handled?

A separator line (default --- PART --- with a blank line before and after) is inserted between parts; set it to an empty string to leave only blank lines. CRLF in the input is normalised to LF, and a trailing blank line is not counted as a data row. Rows per part must be an integer between 1 and 100000, otherwise the tool reports an error.

Keywords:csv splittersplit csvcsv-split

Related tools