CSV Merger

Combine several CSV files into one, with columns lined up by header name.

or drop a file here

Add 2 or more CSV files and click Merge to see the result here.

How CSV Merger works

Joins two or more CSV files into one. By default, columns are lined up by header name, so files with columns in a different order still merge the right way. A column that is only in some files is kept, and rows from the other files get an empty value there.

Rows are added in the order of your files. The header row is written once at the top.

Input to CSV Merger

  • Upload or drop 2 or more .csv, .tsv or .txt files. The first row of each file must be its header.
  • Columns: "Match columns by name" joins columns with the same header. "Keep first file's order" joins rows by position and uses the header of the first file.
  • Check "Add a column with the file name" to add a source_file column that shows where each row came from.
  • Up to 20MB for all files together. Everything runs in your browser, so your data never leaves your computer.

Output from CSV Merger

  • Merged CSV shown as a table. Click the view button to switch to the raw CSV text.
  • Fields are separated by commas, whatever the separator in your files.
  • Copy it or download it as merged.csv. Use Remove Duplicate Rows from CSV to clean up repeated rows after merging.