CSV SPLITTER

Cut a large CSV into smaller files that an importer, email attachment limit, or spreadsheet can handle. Split by a number of rows per part or into a number of equal files, repeat the header in each part, and download everything as one ZIP built in this tab.

Zero retention: your files never leave this browser. Verify it yourself in DevTools.

Loading the CSV tools.

About CSV splitter

How Can You Verify That Your Files Never Leave This Browser?

You do not have to take our word for it. Browser developer tools list every request a page makes, so you can watch 2csv work and confirm that your data is never sent anywhere. The check takes about a minute.

  1. Open your browser developer tools with F12, or Cmd+Option+I on a Mac, and select the Network tab.
  2. Reload the page and let it finish. You will see the page's own files (including the background file parser), its web fonts, and one anonymous page-view request. No file has been chosen yet, so none of them can contain your data.
  3. Click the clear icon in the Network tab so that the log is empty.
  4. Open a CSV file in the CSV splitter tool above, run it, and download the result.
  5. Look at the Network tab again. It is still empty. Reading, changing, and saving the file made no request at all. For extra proof, turn on offline mode after the page loads: every tool keeps working.

Your file is read into this tab's memory with the browser's own file reader, parsed and changed by code that is already on the page, and handed back to you as a download. It is never uploaded, never stored in the browser, and gone when you close the tab. The only other request the site can make is the feedback form, and only when you submit it.

The production site also sends a Content-Security-Policy header that tells your browser to refuse connections to anywhere except this site and the anonymous analytics endpoint, so even a bug could not send your data elsewhere.

Which Ways Can You Split a CSV?

  • Rows per part: every part holds N rows, and the last holds what is left. Good for importers with a row limit.
  • Equal files: the table is divided into N parts of nearly the same size. Good for sharing work between people.

Parts are named after the original file with a number, such as orders-part01.csv, orders-part02.csv, and so on, so they sort in order in any folder. Up to 10,000 parts can be made from one file.

Why Repeat the Header Row?

Most importers read the first line of a CSV as column names. If only the first part has a header, every other part will either fail to import or have its first data row treated as names. Repeating the header, which is on by default, makes every part a complete CSV on its own. Turn it off only when parts will be joined back together.

Before splitting, a quick pass with the CSV validator is worth the minute it takes. A header problem, such as an empty or repeated column name, would otherwise be copied into every one of the parts, and each importer would report the same error separately.

Why Is the Result a ZIP File?

Browsers ask permission, or quietly block, when a page tries to save many files at once. Putting the parts in one ZIP means one download that always works. The ZIP is built in this tab without compression, so it is created quickly and opens on any computer or phone. When there is only one part, it downloads as a plain CSV.

  1. Download the ZIP.
  2. Double-click it on a computer, or tap it in the Files app on a phone.
  3. Open or import each part as a normal CSV.

Can You Split Only Some of the Rows?

Yes. If a filter is active in Filter CSV, only the matching rows are split. That lets you take, for example, only one state's orders and cut them into parts. Sorting first with Sort CSV controls which rows land in which part.

The reverse job, stacking several CSV files back into one, is handled by 2join, the 2suite file merger. Splitting one column into several is a different tool, Split column.

What Else Can You Do With a CSV Here?

  • CSV viewer: Open a CSV of any size, scroll every row, and see a profile of each column.
  • Sort CSV: Sort rows by one or more columns, as text, numbers, or dates, ascending or descending.
  • Filter CSV: Show only the rows that match an expression such as price > 10 AND state = "NY".
  • CSV validator: Find ragged rows, broken quotes, bad headers, encoding problems, and values of the wrong type.
  • Remove duplicates from CSV: Find and remove duplicate rows, comparing whole rows or only the columns you choose.
  • Trim CSV whitespace: Trim leading and trailing spaces, collapse double spaces, and drop invisible characters and empty rows.
  • Find and replace in CSV: Find text in one column or every column and replace it, with match case, whole cell, and regex options.
  • Remove rows from CSV: Delete rows by number or range, the first or last rows, empty rows, or rows that match a rule.
  • CSV editor: Edit cells, add or delete rows, and add, delete, rename, or move columns.
  • Split CSV column: Split one column into several at a delimiter, such as a full name into first and last.
  • Merge CSV columns: Join two or more columns into one with the separator you choose, skipping empty values.
  • CSV column type converter: Convert a column to clean numbers, ISO dates, true/false, or upper, lower, or title case.
  • CSV to JSON converter: Convert CSV to a JSON array of objects or arrays, or to JSON Lines, with typed values.
  • JSON to CSV converter: Convert a JSON array or JSON Lines to CSV, flattening nested objects into dotted column names.
  • CSV to SQL converter: Turn a CSV into SQL INSERT statements, with an optional CREATE TABLE, for PostgreSQL, MySQL, SQLite, or SQL Server.
  • CSV to TSV converter: Convert a comma-separated file to tab-separated values that paste cleanly into spreadsheets.
  • TSV to CSV converter: Convert a tab-separated file to a standard, properly quoted comma-separated CSV.

All eighteen tools are on the 2csv home page, and once a file is open you can switch between them without reloading it. Part of the 2suite.io privacy-first ecosystem.

Frequently Asked Questions

How many parts can I split a CSV into?

Up to 10,000 parts from one file, by rows per part or by a number of equal files.

Does each part have the header row?

Yes, by default. Every part gets the header so it imports on its own. You can turn this off.

Why do I get a ZIP file?

One ZIP download always works, while browsers often block many separate downloads. A single part downloads as a plain CSV.

How do I join the parts back together?

Use 2join, the 2suite file merger, which stacks several CSV files into one in the browser.

Can I split a CSV into files of 1,000 rows each?

Yes. Choose rows per part and enter 1000. Each part holds 1,000 data rows plus the header, and the last part holds whatever is left.

Was this helpful?