Developer

Runs in your browser. No file uploads for processing.

Merge Two CSV Files by Matching Columns

Merge two CSV files by matching columns, add only the fields you need and see which rows did not match. Works in your browser without uploads.

Loading tool...

How to merge two CSV files by a matching column

  1. Read a source and lookup table

    Open or paste both UTF-8 CSV or TSV files. The source provides the rows you want to keep, and the lookup provides the fields you want to add.

  2. Pair keys even when the headers have different names

    Match source SKU to lookup Item code and Warehouse to Depot. Select Unit cost to add it without bringing across Supplier or duplicating the key columns.

  3. Review missing matches and download

    The inventory example matches three source rows, leaves one unmatched, and has one unused lookup row. Keep unmatched rows with blank values or export matches only.

Use cases

  • Add local supplier costs to a stock export using both SKU and warehouse.
  • Enrich an order export with statuses from a second sheet without changing the original files or multiplying rows.

Limits and privacy

  • Each table must have unique single-line headers, up to 2 MiB of UTF-8, 100 columns and 20,000 records including the header.
  • Duplicates or blank values in the chosen lookup key stop processing. Repeated source keys are allowed. This is a lookup, not a many-to-many SQL join.
  • Matches are exact text: case, spaces and leading zeros matter. Up to 10 paired columns, 100 output columns, 200,000 output cells and 8 MiB of CSV.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

When should I compare CSVs instead of merging?

Use CSV Compare by Key to see what changed between two versions. Use CSV Lookup Join to add columns from a separate lookup table while keeping the source row order.

Do the matching column names have to be the same?

No. Pair fields explicitly, for example SKU with Item code. Add a second pair to require both SKU and warehouse to match together.

Will duplicate lookup keys multiply my rows?

No. The tool reports both conflicting lookup record numbers and creates no download. Choose more matching columns or fix the duplicate first. Repeated source keys can all use the same unique lookup row.

What happens when a source row has no match?

Keep it with blank added fields, or choose matched rows only. A blank source key counts as unmatched. The preview also counts unused lookup rows.

Is this the same as comparing two CSV files?

No. A lookup join adds fields from one table to another. Comparing CSVs instead highlights changes between two versions.

Are my CSV files uploaded?

No. The browser reads local files or pasted text, performs the lookup, and creates the download on your device. File contents are not sent to a server.

Related tools