CSV Merger (Combine CSV Files)
Data ToolsDrop several CSV files and combine them into one, stacking rows or joining on a key column.
Read in your browser; files are never uploaded. Only file counts, sizes and row counts are saved to your past runs. Privacy
About
What the CSV Merger does
The CSV Merger combines CSV files into one file on your device. Append mode stacks the rows with the header written once and columns matched by name, so files with extra or reordered columns still line up, and can record each row's source file. Join mode adds columns from other files to the first file's rows by a shared key, as a left or inner join. Duplicate rows can be removed.
Steps
How to use it
- 1Drop the CSV files, or choose them; up to 100.
- 2Pick Stack rows or Join on a column, and set the options.
- 3Press Merge, check the preview, and download merged.csv.
Example
A real run
Input
jan.csv date,sku,units 2026-01-05,TX-1001,12 2026-01-19,CA-2001,4 feb.csv date,sku,units,channel 2026-02-03,TX-1001,9,web mar.csv (columns in a different order) sku,date,units NY-3001,2026-03-11,7
Output
date,sku,units,channel,source_file 2026-01-05,TX-1001,12,,jan.csv 2026-01-19,CA-2001,4,,jan.csv 2026-02-03,TX-1001,9,web,feb.csv 2026-03-11,NY-3001,7,,mar.csv 4 rows · 5 columns · aligned by header name
The three monthly files are stacked even though February has an extra channel column and March lists its columns in a different order; source_file records where each row came from.
Options
Every setting, and when to use it
- Stack rows (append)
- For files with the same kind of data, such as monthly exports. Columns are matched by header name, so a file with an extra column or a different order still lines up; missing values stay empty.
- Add a source_file column
- Adds the name of the file each row came from, so you can still filter by month, region or system after combining.
- Join on a column
- For files that describe the same things, such as orders and customers. The first file is the base; matching rows from the others add their columns by the key. Left join keeps every base row; inner join keeps only matches.
- Remove duplicate rows
- Drops rows that are identical across all columns, common when exports overlap by a day or two.
Good to know
Common problems and limits
Up to 100 files and 200 MB in total. The delimiter of each file is detected separately.
Joins use exact key values after trimming spaces; when a key repeats in a lookup file, its first row is used and a note says how many repeated.
To look through the result, open it in the CSV Viewer; to split it again, use the CSV Splitter.
Audience
Who uses it
- AnalystsCombine monthly or regional exports into one file before building a report or a pivot table.
- Ecommerce and operations teamsMerge order exports from several stores or channels, or add customer details to an order list by customer ID.
- MarketersCombine lead lists from several events or forms into one file, with duplicates removed.
FAQ
Frequently asked
How do I merge CSV files in Excel?
In Excel for Microsoft 365, use Data, Get Data, From File, From Folder, then Combine and Load: Power Query stacks every file in the folder. It works well for files with identical columns; this page also aligns files whose columns differ.
How do I combine CSV files on Windows with the command line?
In Command Prompt, copy *.csv combined.csv joins the files byte for byte, which repeats each header and breaks if a file lacks a final line break. In PowerShell, Get-ChildItem *.csv | Import-Csv | Export-Csv merged.csv -NoTypeInformation keeps one header.
What if the files have different headers?
Append mode matches columns by name and builds the union of all columns, leaving cells empty where a file has no such column. A note tells you when the headers differed.
Can a CSV file have more than a million rows?
Yes. CSV has no row limit, so a merged file can hold millions of rows. Excel, however, opens only the first 1,048,576 rows of a sheet; split larger results with the CSV Splitter or open them in a database or the CSV Viewer.
How do I join two CSV files on a column?
Choose Join on a column, enter the shared column name such as customer_id, and keep the file you want every row from first. A left join keeps all of its rows; an inner join keeps only rows that have a match.
Are my files uploaded?
No. The files are read and merged in your browser. Only the number of files, their total size and the row count are saved to your past runs.
Automation: an MCP tool merge_csv(files, mode, key) → csv and an n8n node are planned for this tool.