Skip to content

CSV Diff & Compare

Compare two CSV exports by primary key column or row position to spot added rows, deleted rows and cell-level changes.

Processed in your browser. Your data is not uploaded, stored or logged — closing the tab discards it. How this works

Comparison options Show
Comparison rules

Changes apply automatically.

Original CSV (File A)

Paste the baseline or older CSV here, or drop a file.

Updated CSV (File B)

Paste the newer CSV here, or drop a file.

Visual diff preview

Load two CSV files or click "Load sample" to compare rows and cells.

Diff report CSV

The downloadable CSV diff report appears here.

How to compare two CSV files

  1. Paste or open your baseline file in Original CSV (File A) and the newer file in Updated CSV (File B), or click Load sample.
  2. Select a shared identifier column in Key column (for example sku, id, or email) or switch to Row position if there is no unique key.
  3. Filter the view to Changes only to inspect added (+), removed (−) and modified (~) rows.
  4. Copy or download the Diff report CSV to share the audit trail in spreadsheets or tickets.

Key-based diff vs positional diff

ModeHow rows are matchedBest for
Key columnMatches rows with the same primary key value across File A and File B, regardless of sort order.Database exports, price lists, inventory snapshots, CRM customer lists.
Row positionCompares row 1 of File A against row 1 of File B, row 2 against row 2, and so on.Time-series logs or files without a unique ID column where row order is fixed.

Limitations

  • The visual diff table previews the first 150 matching rows so the browser stays responsive; the downloaded Diff report CSV contains every matching row.

Frequently asked questions

Why should I compare CSV files by a key column instead of line-by-line?

Plain text diff tools (like git diff) compare files line-by-line. If one row is inserted near the top of a CSV export or the sort order changes, every following line looks changed. Key-column matching pairs rows by their ID, SKU or email regardless of sort order.

What happens if the two CSV files have different columns?

The comparison builds the union of all columns across both files. Columns that exist only in the Original or Updated file are noted and included in the diff table.

How are duplicate keys handled?

If the chosen key column contains duplicate values, occurrences are paired in the order they appear in each file and a warning is shown above the table.

Can I download only the rows that changed?

Yes. Set "Show rows" to "Changes only (added, removed, modified)" or filter to a specific change type. Both the visual diff table and the downloadable CSV report follow your filter.

Are either of my CSV files uploaded to a server?

No. Both CSV files are parsed and compared inside a Web Worker in your browser. Your data never leaves your device.

Last updated .