# CSV merger

> Merge CSV files online, even with different column orders or names. Mix CSV, Excel and JSON, add a source column, remove duplicates and sort. Free, private.

Canonical: https://cromagnon.app/tools/csv-merger
Last updated: 2026-10-26

- Category: Data
- Formats: CSV · TSV · XLSX · JSON
- Use it: https://cromagnon.app/tools/csv-merger (free, runs in the browser)

## What it does

Combine several CSV files into one table, the right way. Columns are matched by name rather than position, so files with columns in a different order, or spelled Email in one file and e-mail in another, still line up. Choose to keep every column, only the columns all files share, or the first file's layout. Add a Source file column so you know where each row came from, skip blank rows, remove exact duplicates and sort by any column. CSV, TSV, Excel and JSON files can be mixed, each with its own separator and encoding detected. Preview the result and download CSV, TSV or Excel.

## How to use it

1. Drop the CSV, Excel or JSON files on the box, paste data, or try the two sample exports.
2. Reorder or remove files; for Excel files with several sheets, pick the sheet.
3. Choose which columns to keep: All, Shared or First file's.
4. Set the options: loose name matching, Source file column, duplicates, blank rows, sorting.
5. Read the notes under each file about missing or dropped columns, check the preview and download.

Tip: Keep Match names loosely on: Order ID, order_id and ORDER-ID are the same column to a person, and now to the merger too. Turn it off only when two columns really differ by case or punctuation.

## Which columns end up in the result

- **All columns (union)**: Every column from every file, in the order they first appear. A file without a column gets blank cells in it. Nothing is lost, which makes this the safe default.
- **Shared columns (intersection)**: Only the columns every file has. Use it when files carry extra columns you don't need and you want a tidy common table.
- **The first file's columns**: The first file decides the layout and order; other files fill those columns and anything else is dropped. Use it when a system expects an exact template.

## Why not just copy and paste?

Pasting files under each other only works when every file has exactly the same columns in exactly the same order. Real exports rarely do: a column gets added in March, another tool exports Email before Name, someone renames Phone to Mobile. A positional join then quietly puts phone numbers in the email column. Matching by name avoids that, and the note under each file tells you which columns it lacked and which were dropped, so surprises show up before you download.

## Duplicates, blanks and sorting

Remove duplicate rows drops rows that are identical in every kept column, ignoring the Source column, so the same order exported twice appears once. For near-duplicates (different case, extra spaces, typos), merge first and then use the duplicate remover. Skip blank rows removes the empty lines exports often end with.

Sorting compares numbers as numbers, so 9 comes before 10 and 1,000, and text alphabetically, ignoring case; blanks go last. Rows with equal values keep their file order.

## Mixing formats

Each file is read on its own terms: the separator (comma, semicolon, tab or pipe) and the encoding (UTF-8, Windows-1252 and others) are detected per file, Excel and ODS files open with a choice of sheet, and JSON arrays of objects become tables, with nested fields as columns like address.city.

## Common merging jobs

- **Monthly or weekly exports**: Bank statements, sales reports and analytics downloads that come one period at a time.
- **Lists from several people**: Contact lists or survey results collected by different team members, each with their own column order.
- **Shops and branches**: Order exports from several stores or marketplaces, merged with a Source column so each row keeps its channel.
- **Re-joining split files**: Parts of a file that was split for an import limit, put back into one table.

## Tips

- **Merging exports by month**: Tick Source file, then sort by date. The result reads chronologically and every row still shows its original file.
- **Check the dropped-columns note**: When Shared or First file's is chosen, any column listed as Dropped is lost from the result. Switch to All if you need it.
- **Excel in Europe**: Choose a semicolon separator on download if your Excel expects one, and keep the UTF-8 BOM ticked.
- **Join back split files**: Parts made by the CSV splitter merge back in order with their headers matched.
- **Too many similar columns?**: If Qty and Quantity both appear, rename one in its file and add it again, or clean the headers first with the CSV cleaner.
- **Merging Excel workbooks with formatting**: For sheets with formulas and layouts, use the Excel workbook merger instead.

## Questions

### How do I merge multiple CSV files into one?

Drop all the files here, keep All columns selected, and download. Columns are matched by name, so their order doesn't matter.

### Can I merge CSV files with different headers?

Yes. Matching ignores case, spaces, dashes and underscores, missing columns are left blank, and you can keep all, shared or the first file's columns.

### Can I tell which file each row came from?

Yes. The Source file column (on by default) holds the file name, and the sheet name for Excel files.

### Does it remove duplicates?

Tick Remove duplicate rows to drop rows identical in every column. For fuzzy matching use the duplicate remover after merging.

### Can I merge Excel and JSON with CSV?

Yes. XLSX, XLS, ODS, TSV and JSON arrays can be mixed with CSV files in one merge.

### What if two files use different separators?

That's fine. Each file's separator and encoding are detected on their own, so a semicolon file from Excel in Germany merges with a comma file from Google Sheets.

### Is there a limit on the number of files?

Up to 200 files can be added at once. The total size depends on your device's memory; a few hundred thousand rows are fine on a normal computer.

### Is my file uploaded?

No. Files are opened and processed in your browser, on your device. Nothing is uploaded, stored or logged, so the tools are safe for private and work files.

## Related

- [CSV Splitter](https://cromagnon.app/tools/csv-splitter)
- [Excel Workbook Merger](https://cromagnon.app/tools/excel-merger)
- [Duplicate Remover](https://cromagnon.app/tools/duplicate-remover)
- [CSV Cleaner](https://cromagnon.app/tools/csv-cleaner)
- [JSON to CSV](https://cromagnon.app/tools/json-to-csv)
- [All tools](https://cromagnon.app/tools)
