Two CSV files
Runs in your browser· both files are compared in this tab and never uploaded
First file (before)
Second file (after)
Compare CSV files by key, in your browser
Find out exactly what changed between two exports. Pick the key column and the page lists the rows that were added or removed and every cell that changed in rows present in both files, regardless of row order or column order. Options ignore spaces, case and number formatting, and the differences download as a CSV. Nothing is uploaded.
Frequently Asked Questions
- How do I compare two CSV files?
- Choose the first (before) and second (after) file and tick the key column or columns that identify a row, such as id. The page matches rows by key, not by position, and lists rows added, rows removed and, for rows in both, each cell that changed with its old and new value. Download the result as csv-diff.csv.
- Why not just use a text diff?
- A line-based diff treats a reordered file, a re-sorted export or an extra column as a change on every line. Matching by key ignores row order and column order, so you see only real differences in the data.
- What happens with duplicate keys or columns that differ?
- If a key appears more than once in a file, only its first row is compared and the page tells you how many rows were skipped. Columns that exist in only one file are listed and left out of the comparison. Spaces, upper and lower case, and number formatting such as 1 and 1.0 can be ignored with the options.
- Are my files uploaded anywhere?
- No. Both files are read and compared in your browser tab and nothing is sent to a server. Each file can be up to 50 MB and 300,000 rows.
Related Tools
Found this useful? Hexabench is free and ad-free. If it saved you time, you can support it.
Buy me a coffee →