Compare Two CSV Files Online

Compare two CSV files online. The tool lists added, removed and changed rows, with each changed cell shown as old → new. It can also merge the two files with an inner, left, right or outer join. Files of up to 50 MB each never leave your browser.

  • Free to use
  • No account required
  • Instant results
  • Private: runs in your browser

Two files

 

 

CSV or TSV, up to 50 MB per file (5 MB when pasted). Both files stay in your browser. Excel files: save them as CSV first.

What to do

Key columns (identify the same row in both files)

The two files have no column names in common yet.

Your data: Files and text are processed locally in your browser. Nothing you load here is uploaded to our servers.

How to use

  1. Paste or open file A (the old version) and file B (the new one). CSV and TSV work, with any delimiter and encoding.
  2. Pick one or more key columns, such as sku, customer_id or store + sku. The tool suggests a column that is unique in both files.
  3. Choose Compare, Merge (join) or Stack and remove duplicates.
  4. Set the options: ignore case or spaces in keys, ignore spaces around values, and the join type.
  5. Read the summary and the colour-coded tables, then download the added, removed or changed rows, the full report or the merged file.

Examples

Last month's price list against this month's (loaded when the page opens). File A has sku,name,price,stock. File B has the columns in a different order, plus a new category column, and lists TEA-07 as tea-07 (lower case, trailing space). With "Ignore case" and "Ignore spaces" on, the result is:

  • 1 added: KET-11
  • 1 removed: CUP-09
  • 3 changed: MUG-01 stock 140 → 128, MUG-02 price 18.00 → 19.50, tea-07 stock 80 → 72
  • 1 unchanged

The tool notes "Columns only in B: category" and compares the four shared columns by name. Turn the key options off and tea-07 shows up as one added row and one removed row instead.

A left join, like VLOOKUP. Joining id,name,city with id,city,plan on id gives id, name, city (A), city (B), plan. With a left join every row of A is kept, and rows without a match in B have empty plan cells. An outer join also adds B's rows that have no match in A.

500,000 rows each. Two customer files (38 MB and 40 MB) were compared on customer_id in about 3.5 seconds in Chrome, including reading both files. The result was 5,000 added, 5,000 removed, 11,356 changed and 483,644 unchanged rows. An outer join of the same files took about 2 seconds. The page stays responsive throughout, because the work runs in a background thread.

Tips and limits

  • Rows are matched through a hash map on the key, so row order does not matter. Columns are matched by name, so column order does not matter either.
  • Duplicate keys are reported with examples. Rows sharing a key are paired in the order they appear: the second "Lyon | A" in A is compared with the second one in B. Add another key column if that is not what you want.
  • Without a key, rows are compared by position. This is less reliable: one inserted row makes every row after it look changed.
  • Joins work like SQL. A key that appears twice in B creates two result rows, and the tool says how many extra rows that produced.
  • "Stack and remove duplicates" puts A and B in one file and keeps the first row for each key. A's rows come first.
  • The changed-rows CSV has one line per changed cell (key, column, old value, new value), so it is easy to filter in a spreadsheet.
  • Limits: 50 MB per file (5 MB when pasted). The screen shows the first 200 rows of each group; the downloads contain everything. Excel files must be saved as CSV first.
  • Beyond about 1–2 million rows per file, the browser may run short of memory.

FAQ

How do I find the differences between two CSV files?

Load both files, pick the column that identifies a row (an ID, SKU or email), and choose Compare. Added, removed and changed rows are listed separately, with the changed cells highlighted.

What is a key column?

A key column holds a value that identifies one row, such as an order number. If no single column is unique, combine two, such as store and SKU.

Can I merge two files like a VLOOKUP?

Yes. Choose Merge, the key column and a left join. Every row of file A gets the matching columns from file B, which is what VLOOKUP does, but for all columns at once.

What about columns that exist in only one file?

They are listed and kept in the downloads, but not compared.

Are my files uploaded?

No. Both files are read and compared inside your browser.

Privacy note

Both files are read and processed by your own browser, in a background thread. Nothing is uploaded, logged or stored, and the page makes no network requests with your data. Close or reload the page to clear everything from memory.

Guides for this tool