How to compare two CSV files
- Paste or open your baseline file in Original CSV (File A) and the newer file in Updated CSV (File B), or click Load sample.
- Select a shared identifier column in Key column (for example
sku,id, oremail) or switch to Row position if there is no unique key. - Filter the view to Changes only to inspect added (
+), removed (−) and modified (~) rows. - Copy or download the Diff report CSV to share the audit trail in spreadsheets or tickets.
Key-based diff vs positional diff
| Mode | How rows are matched | Best for |
|---|---|---|
| Key column | Matches 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 position | Compares 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 .