How to merge multiple CSV files
- Click Add files… (or drag and drop several
.csvfiles onto the input panel), or press Sample data to see an example with two monthly exports. - Use the ↑ and ↓ buttons to change the order in which files are combined.
- Choose how columns should be aligned: keep all columns across files (union), keep only the first file's columns, or stack rows by position when there is no header row.
- Optionally add a
source_filecolumn or remove duplicates across files, then copy or download the merged.csv.
Why header-aware merging matters
Concatenating CSV files with a command-line script or copy-paste only works if every file has the exact same columns in the exact same order. In practice, exports from different months or systems often add a new column or reorder existing ones. Matching columns by header name ensures that a total value never ends up inside a customer column.
Need to do the opposite and break a huge CSV into smaller files? Use the CSV Splitter.
Frequently asked questions
What happens if my CSV files have columns in a different order?
By default ("Keep all columns — union"), the merger matches columns by their header name rather than their position. If february.csv puts "region" before "customer" or adds a new "discount_code" column, every value still lands in the right column.
Can I track which file each row came from?
Yes. Turn on "Add a column with the source file name". It inserts a column (named source_file by default) at the start of every row showing the file it came from.
How does duplicate removal work when merging?
When "Remove duplicate rows across files" is checked, rows with identical data values are kept only once (in the order they first appear). Even if you add a source-file column, duplicate comparison looks only at the data columns.
Are my CSV files uploaded to a server?
No. Every file is read and combined locally in your browser using a Web Worker. Your files never leave your device.
What is the file size limit?
Up to 50 MB of combined CSV input can be merged at once in the browser.
Last updated .