Tool guide
About this tool.
A CSV diff compares two tables row by row instead of line by line. With a key column such as id, rows are matched by their key, so reordering rows creates no changes. Rows only in the first CSV are removed, rows only in the second CSV are added, and matched rows with different cells are changed, with each changed cell shown before and after.
Without a key, rows are matched by their 1-based data row number, so an inserted row changes every later row.
Cells are matched by header name, so column order does not matter. A column only in the second CSV is an added column and a column only in the first CSV is a removed column; their cells never mark a row as changed.
- Check what an export or a database dump changed between two runs.
- Review edits to a spreadsheet saved as CSV before importing it.
- Confirm that a migrated table kept every row and value.
- Find added and dropped columns after a report format changed.
Paste the older CSV in First CSV (before) and the newer one in Second CSV (after), or pick a sample.
Enter a header name in Key column to match rows by it, or leave it empty to compare row by row.
Run CSV Diff. The table lists removed and changed rows in the order of the first CSV, then added rows.
Copy the text report or save it as a .txt file.
- id,v / 1,a / 2,b vs id,v / 2,c / 3,d with key id → Removed key "1", Changed key "2": "v": "b" → "c", Added key "3".
- a / 1 / 2 vs a / 1 without a key → Removed row 2.
- id,a,b vs id,b,c → Added column "c" and Removed column "a"; only b is compared.
- 1.0 vs 1, or a vs A → changed; values are compared exactly.
- Processing is local; nothing is uploaded.
- Limits: 5,000,000 characters, 100,000 data rows, 10,000 columns and 1,000,000 cells including the header, for each CSV. The report lists at most 10,000 changes and 10,000,000 characters of keys, column names and values; counts stay exact.
- Values are compared exactly: no trimming, no case folding and no numeric normalization.
- Columns and the key column are matched by exact header name, including spaces and case. A repeated header name, including a repeated empty one, is an error that names the CSV. Only columns in both CSVs are compared.
- Short rows are filled with empty cells; cells beyond the header width are ignored.
- The separator of each CSV is detected separately, and a leading byte order mark is ignored. Record line endings (CRLF/LF) make no difference; line breaks inside quoted values are compared exactly.