Merge CSV Files

Combine several CSV files into one: stack them by column name or join two files on a key like VLOOKUP. Different column orders and encodings are fine. No upload.

About this tool

Combine CSV files — stacked or side by side

Twelve monthly exports into one year, or an order list matched with a customer list: drop all the files at once. Append stacks them by column name — columns in a different order or missing in one file are handled — and Merge (join) adds the matching columns of a second file to each row, with the key columns suggested for you.

Stacked by column name

Files are appended by name, not position, so a different column order or an extra column doesn't scramble the data.

Joins with key suggestions

Left, inner, full and anti joins; the workbench suggests key pairs and reports how many keys match and whether they repeat.

Mixed formats welcome

Comma and semicolon files, UTF-8 and Windows-1252, even CSV with Excel or JSON — everything becomes one table.

Nothing leaves your device

The engine runs in your browser tab. There is no upload, no account and no server copy of your data.

How to use it

  1. Drop all the CSV files on the page at once.
  2. To stack them, accept the Append step; to match two files, choose Merge with table.
  3. Optionally add a column with each row's source file.
  4. Export the combined table as CSV or Excel.

Frequently asked questions

What's the difference between append and merge (join)?

Append puts the rows of one file under the other — for files with the same kind of data, like monthly exports. A join puts columns side by side — for adding customer details to orders, say — matching rows on a key column.

My files have the columns in a different order. Is that a problem?

No. Rows are matched to columns by name; a column only some files have stays empty for the others.

How do I find rows that are in one file but not the other?

Use Merge with table and keep "Rows without a match (anti join)" — you get the rows of the first file whose key the second file doesn't have.

Are my files uploaded?

No. The files are read by a database engine (DuckDB, compiled to WebAssembly) that runs in your browser tab. Nothing is sent to a server, so customer lists, payroll exports and order data stay on your device. Remote URLs are switched off in the SQL editor too.

How big can a file be?

On a computer, files of several hundred MB and millions of rows open fine; the limit is the memory a browser tab may use (about 4 GB for WebAssembly). Phones and tablets have far less, so very large files are best opened on a computer.