Read in: PortuguêsEspañol
Excel

How to split a large CSV file into smaller files that keep the header

October 20, 2026 · 5 min read

Full system exports, customer databases and transaction histories grow fast. At some point the CSV file becomes too big for what you need to do with it, and the way out is to split it into parts.

When a CSV needs to be split

Why not cut it by hand

Opening the file in a text editor and cutting out chunks looks simple, but it is easy to cut a row in half, forget the header in the later parts or break the character encoding when saving. Command-line tools such as the Linux split command divide by lines, but they do not repeat the header either, so every part after the first is imported without column names.

How to split with the Split CSV tool

Split CSV splits files in two ways:

Before creating them, it shows how many parts you will get. With the repeat header option on, every part starts with the same title row as the original and can be opened or imported on its own. The original delimiter is kept and values are not changed: leading zeros and dates stay exactly as they were. The parts are numbered in sequence and delivered in a single ZIP file, in UTF-8.

Tips for choosing the part size

Start from the destination limit and leave some margin: if the platform accepts up to 10,000 rows, use 9,500. If the limit is in megabytes, divide the file size by the limit and use a slightly larger number of parts. For opening in Excel, anything below a million rows per part works, but smaller parts open faster.

Once the parts have been processed, if you need to bring everything back together, Merge CSV does the reverse, with the header only once.

🔒 Privacy: at I Love Office no file is uploaded to a server. All processing happens in your browser, with no sign-up.

Frequently asked questions

Does every part get the header?

Yes, with "Repeat the header in every file" turned on. With it off, only the data rows are split.

Does splitting change any value?

No. Values are copied exactly as they are in the original file, including leading zeros and dates.

Is the file uploaded to a server?

No. The split happens in your browser and the file stays on your computer.