Split a CSV file into smaller files

Cut one big CSV into pieces that Excel, an import tool or an email attachment limit can handle. Split by a fixed number of rows, into a set number of equal parts, or into one file per value of a column such as country. Each part repeats the header row.

CSV Splitter tool

Your file stays in this browser tab. It is not uploaded by SheetShift.

CSV file

Drag a file here, or

Options

How to use the CSV Splitter

  1. Load a CSV file.
  2. Choose how to split: rows per file, number of parts, or the value in a column.
  3. Enter the number, or the column name, then press Split.
  4. Download every part together as one ZIP file, or save the parts one by one.

Example: input and output

This example was produced by the same code the tool runs, with these settings: mode = rows, value = 2. You can download the sample file(s): sales.csv.

Input
id,country,amount
1,US,10
2,UK,20
3,US,30
4,CA,40
5,UK,50
Output
# sales_001.csv
id,country,amount
1,US,10
2,UK,20

# sales_002.csv
id,country,amount
3,US,30
4,CA,40

# sales_003.csv
id,country,amount
5,UK,50

Result summary: Created 3 files.

Supported formats

Input: CSV, TSV, TXT. Output: CSV files bundled in a ZIP.

Limitations

  • Splitting by a column value is limited to 500 different values to avoid creating thousands of files.
  • Files are created in your browser memory. Very large inputs may need a desktop browser.
  • Rows with line breaks inside quoted cells are kept whole, so parts are never cut in the middle of a record.

When this helps

Import limits

A platform accepts at most 5,000 rows per upload. Split by 5,000 rows and upload the parts in turn.

One file per region

Split a sales export by the country column to send each team only its own rows.

Frequently asked questions

Does every file keep the header?

Yes, when "First row is a header" is ticked, every part starts with the header row.

What do I get when I split by column?

One CSV for each distinct value in that column. Blank values go into a file named "blank".

Why a ZIP file?

Browsers can ask for permission when a page downloads many files. One ZIP avoids that. The ZIP is created locally and holds uncompressed CSV files.

Related tools

Category: CSV Tools