Data stays in this browser.
Merge CSV Files with Matching Headers
Combine two or more CSV files that share the same header row into one dataset, locally.
What it does
CSV Merge combines two or more CSV files into a single dataset, checking first that every file has the exact same header row. The header is written once, followed by every file's data rows in the order the files were selected. Everything is read and combined in your browser, so the source files are never uploaded, which suits joining monthly exports or split data extracts into one file.
How to use it
- Choose two or more CSV files that share the exact same header row.
- Press "Merge CSV files" to combine them in the order they were selected.
- Copy the merged CSV from the box or press "Download current output" to save merged.csv.
Example
- Input
- january.csv (name,amount) and february.csv (name,amount), each with a few data rows
- Output
- one CSV with the header written once, followed by january's rows and then february's rows
What happens to your file
- Your file or text is processed by code running in this browser tab. It is not uploaded to any server.
- The processing code is downloaded from this site with the page; nothing about your input is sent back.
- The result is created on your device and saved only when you choose to download it.
Limits
- Requires 2 or more files whose header row matches exactly, including column order and capitalization.
- Output always uses commas as the delimiter, regardless of the original files.
- Very large merges are limited by your browser's memory.
Questions
What counts as "the same header"?
An exact match: the same column names, in the same order, with the same capitalization; if any file's first row differs, the merge is refused with an error.
In what order are the files combined?
In the order your file picker returns them, usually the order you selected them; the header is taken from the first file and written only once.
Can I merge files that use different delimiters?
Each file's delimiter is detected on its own, but the combined output is always written with commas.
Is there a download button?
Yes. The result replaces the text in the box, and "Download current output" saves it as merged.csv.