<link rel="stylesheet" type="text/css" href="/mirawhite.css">

Merge CSV files into a single spreadsheet

Drop two or more CSV exports and get one combined file, for free and without upload. Columns are lined up by their titles, so files with a different column order, extra columns or another separator merge cleanly.

Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.

Merge CSV files

Drop your .csv files here (several at once if you like).

Files are merged in your browser: nothing is uploaded.

OptionsRecommended for files you did not create: it prevents Excel from running hidden formulas.

How to use it

  1. Drop your .csv files, or choose several at once. You can add more files later.
  2. Put them in the right order with the arrows: the rows follow the order of the list. Tick the options you need (source file column, duplicate removal).
  3. Check the preview, pick the separator of the merged file and download it.

Example

Input

paris.csv:
Name,Email
Anna Lee,anna@example.com
Tom Hart,tom@example.com

lyon.csv:
email;NAME;City
bob@example.com;Bob Stone;Lyon

Output

Name,Email,City
Anna Lee,anna@example.com,
Tom Hart,tom@example.com,
Bob Stone,bob@example.com,Lyon

Good to know

  • Column titles are matched ignoring case and spaces: “E-mail”, “e-mail” and “E- mail” become one column, but “Email” and “E-mail” stay separate.
  • The first non-empty row of each file is read as its column titles.
  • Duplicate removal compares whole rows, character for character; blank rows are always skipped.

Frequently asked questions

How do I merge multiple CSV files into one?

Drop all the .csv files here (or choose several at once), put them in order with the arrows, check the preview and download merged.csv. The header row is written once, and the rows of each file follow in the order of the list.

How do I merge CSV files in Excel?

Excel can do it with Power Query: Data > Get Data > From File > From Folder, then Combine. It works well when every file has the same columns. This page needs no setup and also lines up columns that are in a different order.

Can I merge CSV files with the command prompt?

Yes: copy *.csv merged.csv on Windows, or cat *.csv > merged.csv on a Mac, glues the files end to end. But the header row is repeated for each file and columns are not matched, so it only suits files with identical columns and no header.

What if the files have different columns?

Columns are matched by title, ignoring case and spaces, so “Email” in one file and “EMAIL” in another become one column, whatever their position. A column missing from a file is left empty for its rows, and extra columns are added at the end.

Can I see which file each row came from?

Yes: tick “Add a column with the source file name”. Each row then carries the name of its original file, which helps to filter by month, store or region once the merged file is open in a spreadsheet.

Are duplicate rows removed?

Only if you tick “Remove duplicate rows”: rows that are identical, character for character, are then kept once. To remove duplicates on one column only, such as the email, run the merged file through the duplicate row remover.

← Back to all tools