Compare two CSV files and see which rows were added, removed or changed, matched by a key column or by position, with each changed value shown before and after.
Initializing in your browser…
Combine several CSV files into one, stacking rows with columns matched by name or placing files side by side, and see exactly which columns differ.
Find and remove duplicate rows in a CSV, by whole row or chosen columns, ignoring case, stray spaces or number formatting if you want, and review every group before you download.
Open a CSV as a sortable, searchable table, edit cells, rows and columns with undo, and download the result. Runs in your browser.
A club compares its member list from the start of the month with the end of the month. The newer export lists its columns in a different order and someone typed a space after Bob's name.
members-before.csv and members-after.csv
Before: id,name,email,plan 1,Alice,alice@example.com,pro 2,Bob,bob@example.com,free 3,Carol,carol@example.com,pro 4,Dave,dave@example.com,free After: id,plan,name,email 0,trial,Zoe,zoe@example.com 1,pro,Alice,alice@example.com 2,pro,"Bob ",bob@example.com 3,pro,Carol,carol@example.com
Matched by id, columns lined up by name
Added 1 Removed 1 Changed 1 Same 2 Changed id 2 name: "Bob" -> "Bob " plan: free -> pro Removed id 4 Dave, dave@example.com, free Added id 0 Zoe, zoe@example.com, trial Every one of the 4 rows of the first file and 4 of the second is accounted for exactly once.
Because rows are matched by id and columns by name, the reordered columns and the new first row do not disturb the comparison: Alice and Carol are the same, Zoe is new and Dave has gone. Bob's row shows two changes, his plan and a trailing space in his name that is invisible in a spreadsheet. Turning on Ignore surrounding spaces would leave only the plan change.
Load an older and a newer version of a CSV and get a clear list of what changed: rows added, rows removed, and rows whose values changed, with the old value struck through above the new one. Rows are matched by a key such as an ID, so a reordered file still compares correctly, and columns are lined up by name even when they are in a different order.
Why a plain text diff is not enough. Comparing two CSV exports line by line works only when nothing moved. Sort the file differently, add a column, or reorder the columns, and a text diff reports almost every line as changed. This comparator reads both files as tables and matches rows the way a person would.
Matching rows. With By a key column, rows with the same value in the key column, usually an ID, are treated as the same record wherever they appear, so a file sorted differently compares cleanly. If a key appears more than once, those rows are paired in file order and the page tells you which key repeats and how often. With By position, as a diff, the files are compared in order using the same method as git diff, so a row inserted near the top counts as one addition instead of shifting everything below it into "changed".
Matching columns. With Line columns up by name on, columns are paired by their header, so id,name,email and email,id,name compare correctly. A column that only one file has is shown and explained: a column added in the newer file makes every row count as changed, because each row gained a value. Turn the option off to compare columns by position instead.
What counts as the same value. By default two values match only when they are identical, so "Bob" and "Bob " with a trailing space are different, which is often exactly the problem you are looking for. Under What counts as the same value you can ignore surrounding spaces, repeated spaces, upper and lower case, the two ways an accented letter can be stored, or compare numbers by value so 1.0 equals 1 and 007 equals 7.
Results you can use. Four totals summarise the change, and a check confirms every row of both files is accounted for exactly once. The table shows only the differences by default, with the row numbers in each file, and each changed cell shows the old value above the new one. Download the full comparison as a CSV with a status column, the row numbers, the names of the changed columns and every value before and after, ready to filter in a spreadsheet. Both files are read in your browser and never uploaded.
Compare last month's customer list with this month's to see who joined, who left and whose details changed.
Load the file you sent and the file you got back to see exactly which values were edited, even if rows were re-sorted.
Compare the output of a script before and after a change to confirm only the expected rows differ.
Compare the same records exported from two systems, matching by ID, and ignore case or spacing differences that do not matter.
In the sample pair, matching by id finds 1 added member (Zoe), 1 removed (Dave), 1 changed (Bob) and 2 the same, even though the newer file lists its columns in a different order.
Bob's name is "Bob " with a space in the newer file. By default that is a change; with Ignore surrounding spaces on, only his plan change from free to pro remains.
Compared by position, a new row at the top of a 1,000-row file is reported as one added row, not as 1,000 changed rows.
Use By a key column when each row has an ID or another unique value; it handles re-sorted files. Use By position when there is no key and the order of rows matters, such as a log.
Usually because the newer file has a column the older one does not, so every row gained a value, or because the columns are matched by position and are in a different order. The notice above the table says which; turn on Line columns up by name if the headers match.
Often a space at the end of a value, a different case, or a number written differently, such as 1.0 and 1. Changed cells are highlighted. Use What counts as the same value to ignore those differences.
The rows with that key are paired in the order they appear in each file, and a notice says which key repeats and how many times in each file, so you can check them.
One row per compared row, with its status (added, removed, modified or unchanged), its row number in each file, the names of the changed columns, and every column's value before and after.
Files of tens of thousands of rows compare quickly in a desktop browser. The table shows the first 200 differences and the report has all of them.
No. Both files are read and compared in your browser.
Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.