Skip to main content

locacsv.comSplit a CSV by file size

Split by rows or file size

Split a CSV by file size

Choose your CSV to split it into files of about 50 MiB each. You can adjust the target before splitting. Rows stay intact, even if a single row exceeds the target.

CSV processing stays in your browser

Your files are not uploaded to a server.

File selection

Drop a CSV file here

or

1 CSV file, up to 500 MB

Import settings

Change character encoding and header row settings

Auto-detection covers only UTF-8 and Shift_JIS. For CSV files from mainland China, Korea, Taiwan, or Western Europe, select the matching encoding manually.

How it works

Example: split by file size

These four small rows fit in a single file at the 50 MiB target. For larger inputs, each new file starts at a complete CSV row.

Before splitting

3 columns · 4 rows
Before splitting
IDDateQuantity
A-0012026-01-013
A-0022026-01-025
A-0032026-01-032
A-0042026-01-044

After splitting

2 columns · 1 row
After splitting
Created fileData rows included
part_001.csvData rows 1–4
The left table shows the input, and the right table shows the output.

Rows are never cut in half. The original CSV stays unchanged, and the split CSV files are saved in one ZIP.

Your selected CSV is processed entirely in your browser and is never uploaded to a server.

Split a CSV by rows or target size

Split by a fixed data-row count or a target file size, then download the CSV files in a ZIP.

Features

  • Auto-detect UTF-8 or Shift_JIS input, or manually select ISO-8859-1, CP949, Big5, GB18030, or Windows-1252. Choose the output encoding separately from eight options, including UTF-8 with or without a BOM, for up to 100 files.
  • Preserve headers, separators, quotes, and line breaks inside cells. Before saving, confirm that every input row is either included in the output or excluded.

How it works

  1. Choose a CSV and confirm its encoding and header setting.
  2. Choose a method and set the data rows per file or target MB.
  3. Run the split and download the CSV files and row report as a ZIP.

Before you start

  • You can open one CSV up to 500 MB and create up to 100 CSV files totaling up to 512 MB. Row mode counts only data rows. Size mode counts the encoded bytes, including any BOM and repeated headers.
  • A non-UTF-8 output stops instead of replacing unsupported characters; choose UTF-8 when needed.
View FAQs for this tool

Use Split by value for one file per column value, or Merge vertically to recombine results.