Merge two CSV files

Combine two CSV files by appending rows, unioning columns, or joining on a key.

freeworks offlinenothing uploaded
ToolCSV Merge
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

The inputs are parsed, then append, union, or key-based join determines the row and column shape. Optional whole-row deduplication runs after the merge and the result is serialized with the chosen delimiter.

  • Append is the least-surprising default for matching columns.
  • Union and join are explicit because they change shape or identity.

Worked example

Append two user lists
Concatenate two CSV files with the same columns into one combined file
Input
											Input1: id,name,email
1,Alice,[email protected]
2,Bob,[email protected]
Input2: id,name,email
3,Carol,[email protected]
4,Dave,[email protected]
										
Output
												id,name,email
1,Alice,[email protected]
2,Bob,[email protected]
3,Carol,[email protected]
4,Dave,[email protected]
											

When to use this

Monthly exports append, unlike schemas union, and catalogue data joins inventory on SKU.

Edge cases

  • A repeated join key in the second input keeps its last lookup row.
  • Union fills absent columns with empty values rather than shifting cells.
  • Deduplication compares the complete merged row, not only the join key.

References