Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. CSV & Data Analysis
  3. CSV Splitter
Add to favorites

CSV Splitter

Split a large CSV into smaller files by row count, number of files, column value or maximum size, with the header kept and every row accounted for.

Rows never leave your deviceMore csv & data analysisJump to full guide

Initializing in your browser…

You might also like

CSV Viewer & Editor

Open a CSV as a sortable, searchable table, edit cells, rows and columns with undo, and download the result. Runs in your browser.

CSV to JSON Converter

Convert CSV to JSON or JSON back to CSV, keeping zip codes, IDs and quoted text exactly as written and listing anything the conversion changes.

CSV Formatter & Validator

Clean up and standardise a CSV file: change the delimiter, quoting and line endings, trim spaces, fill short rows and remove repeats, with a check against RFC 4180.

A sample run

A shop's order export has 2,400 rows and a region column. The regional managers each want only their own orders, and the upload form for the reporting system accepts files of 50 KB at most.

orders.csv (2,400 rows, 109 KB)

order_id,order_date,region,product,quantity,amount
SO-10001,2026-01-01,South,Monitor stand,2,79.98
SO-10002,2026-01-01,North,Desk lamp,3,102.00
SO-10003,2026-01-01,East,Webcam,2,119.90
...
SO-12400,2026-10-27,East,Mechanical keyboard,3,267.00
What CSV Splitter produces

Two splits

By column value: region
  orders_South.csv   484 rows   23,446 bytes
  orders_North.csv   705 rows   33,872 bytes
  orders_East.csv    735 rows   34,473 bytes
  orders_West.csv    476 rows   22,419 bytes
  Rows in 2,400, rows out 2,400

By maximum size: 50 KB (51,200 bytes)
  orders_part1.csv  1,079 rows  51,171 bytes
  orders_part2.csv  1,073 rows  51,157 bytes
  orders_part3.csv    248 rows  11,827 bytes
  Rows in 2,400, rows out 2,400

The region split writes the files in the order each region first appears in the data, and the four row counts add up to the 2,400 that went in. The size split fills each file with whole rows until the next row would cross 51,200 bytes, which is why the first two files stop 29 and 43 bytes short of the limit and hold slightly different numbers of rows. Each size includes the repeated header, the quoting, the CRLF line endings and the three-byte byte order mark, so it is the size the upload form will see.

Break a Large CSV Into Smaller Files

Cut a CSV into pieces by the number of rows per file, a fixed number of files, the value in a column, or a maximum file size. Every file keeps the header, the sizes shown are the exact sizes you will download, and the page confirms that every row landed in exactly one file.

How to use

  1. 1Drop a CSV file onto the page, choose one, paste rows, or press Try a sample to load 2,400 example orders.
  2. 2Pick a split method: rows per file, number of files, by column value, or maximum size.
  3. 3Enter the number, or pick the column whose values decide the files. The hint under the box shows what you will get.
  4. 4Keep First row is a header switched on if your file has one, and decide whether every file should repeat it.
  5. 5Check the result: the file list shows each file's rows and exact size, and Rows out should equal Rows in.
  6. 6Press Download ZIP for all files at once, or the download icon beside a single file.

Key features

  • Split by rows per file, number of files, column value or maximum file size
  • Exact file sizes, including quoting, line endings, header and byte order mark
  • A maximum size that no file exceeds, with a warning if one row is too large on its own
  • Rows in and rows out shown side by side, so you can see nothing was lost or duplicated
  • One file per distinct column value, with names that keep accents and non-Latin letters
  • Empty values grouped in their own file instead of being dropped
  • The header repeated in every file, or written once
  • Custom file names with the part number zero padded so files sort in order
  • A compressed ZIP of every file, plus a download button for each file and a preview of its first rows
  • UTF-8 output with a byte order mark and CRLF line endings, created in your browser

How it works

Four ways to split. Rows per file is the simplest: 1,000 rows in each file, in the original order, with the last file holding whatever is left. Number of files spreads the rows as evenly as they divide, so 2,400 rows into 7 files gives six files of 343 and one of 342. By column value writes one file per distinct value of a column you choose, such as one file per region, store or month, named after the value. Maximum size fills each file with whole rows until the next row would take it over the limit you set in kilobytes.

Sizes you can rely on. Upload forms, email attachments and import tools usually have a hard size limit, so the maximum-size mode measures each file exactly as it will be written: UTF-8 bytes, quotes around fields that need them, line endings, the repeated header and the byte order mark. No file goes over the limit. The one exception is a single row that is larger than the limit on its own; a row cannot be cut in half, so it gets a file of its own and the page warns you.

Nothing lost, nothing doubled. Above the file list the tool shows the number of data rows that went in and the number that came out across all files, and they match. File names in column mode keep accents, spaces and non-Latin letters, and only the characters a file system refuses (such as a slash or a colon) are replaced. If two values would still produce the same name, for example A/B and A:B, the second file gets a number and a note tells you. Rows with an empty value go to their own file instead of being dropped, and they stay separate from rows whose value is literally the word empty.

Headers and names. The header row is repeated at the top of every file by default, which is what spreadsheets and importers expect. Switch that off and it appears only in the first file, so the set of files still holds it exactly once. Under More options you can change the naming pattern; the default numbers parts as part01, part02 and so on, so they sort correctly in any file listing.

Output and privacy. Every file is a standard CSV with a UTF-8 byte order mark, so Excel shows accented text correctly, and CRLF line endings as RFC 4180 specifies. Download everything as one compressed ZIP, or open any file in the list to preview its first rows and save it on its own. The splitting happens in your browser and the file is never uploaded.

Where this fits a data pipeline

  • Getting under an upload limit

    A CRM or email platform that accepts files of 5 MB at most: set the maximum to 5000 KB and every file will be under it, measured exactly.

  • Opening a huge export in a spreadsheet

    Excel stops at 1,048,576 rows. Split a bigger export into files of 1,000,000 rows, each with the header, and open them one at a time.

  • One file per team, store or region

    Split a company-wide report by the department or region column and send each team only its own rows.

  • Batching an import

    Some systems time out on large imports. Split the file into 10 or 20 equal parts and load them one after another.

Tips & best practices

  • Splitting by column value with many distinct values (an ID column, say) creates one file per value. Check the distinct value count under the column picker before you download.
  • Leave a little headroom under a hard upload limit; some systems count a megabyte as 1,000,000 bytes rather than 1,048,576.
  • Keep the zero-padded {nn} in the naming pattern so part10 sorts after part09 instead of after part1.
  • Open a file in the list to preview its first rows before downloading, especially after changing the header settings.

Examples

  • Orders by region

    The 2,400-row sample split by its region column gives four files: East with 735 rows, North with 705, South with 484 and West with 476, adding up to 2,400.

  • A 50 KB limit

    The same sample, 109 KB in total, split with a 50 KB maximum gives three files of 51,171, 51,157 and 11,827 bytes. 50 KB is 51,200 bytes, so both full files are just under it.

  • Seven even parts

    Asking for 7 files from 2,400 rows gives six files of 343 rows and one of 342, because 2,400 does not divide evenly by 7.

Frequently asked questions

Is the size setting a target or a limit?

A limit. Each file takes whole rows until the next one would push it over, so no file is larger than the number you enter. The only exception is a single row bigger than the limit by itself, which goes into a file of its own with a warning, since a row cannot be split.

Why are my files slightly different sizes?

Rows have different lengths and are never cut, so each file stops at the last whole row that fits. The last file is usually smaller because it holds whatever is left.

Does every file get the header row?

Yes, by default. Switch off Repeat the header in every file and the header is written only in the first file, which is useful when you plan to join the pieces back together later.

What happens to rows with an empty value when I split by column?

They go into a file of their own named with empty-value, so nothing is dropped. Rows whose value is the word empty stay in a separate file, and a row too short to have that column at all is grouped with the empty values and mentioned in a note.

Are values matched case-sensitively?

Yes. North and north become two files, because they are different text. If that is not what you want, tidy the column first with the CSV Transformer or the Search and Replace tool.

What if I ask for more files than I have rows?

You get one file per row instead of empty files, and a note explains how many were written.

How many files can it create?

As many as the split needs. The list on the page shows the first 200, and the ZIP always contains all of them.

Is my data uploaded anywhere?

No. The file is read and split by your browser, and the ZIP is built on your device.

Related tools and how they differ

  • CSV Merger: The reverse job: combine several CSV files into one, with columns matched by name.
  • CSV Row Filter: Use it when you want only the rows that match a condition in one file, rather than every row spread over several files.

Private by design

Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.