Compare Two Spreadsheets
Find every added, removed and changed row and cell between two versions of an Excel or CSV file, then download the differences.
Runs in your browser. Nothing is uploaded.
Your two files
Excel (.xlsx, .xlsm), CSV or TSV, up to 50 MB and 1,000,000 filled cells each. You can choose both files at once.
The column that names each row, such as an SKU, invoice number or employee ID.
Columns
Columns are matched by name, ignoring letter case and spaces. Pick a new column for any old column that was renamed, or untick a column to leave it out.
| Compare | Old file column | New file column |
|---|
Comparison options
Differences
The link keeps your settings, not your files.
Reading the files
Choose the old and the new version, or try the example. The differences appear here.
- 0Rows matched
- 0Added rows
- 0Removed rows
- 0Changed rows
- 0Changed cells
- 0Unchanged rows
Changes by column
| Column | Changed cells | Total change | Largest increase | Largest decrease |
|---|
The full list of changed rows is in the Excel report and the CSV download.
Rows side by side
Row details
| Column | Old value | New value | Change |
|---|
How to use
- The page opens with the worked example below. Choose the old version and the new version of your own spreadsheet, as Excel (.xlsx) or CSV files.
- Check the key column: the column that names each row, such as an SKU, invoice number or employee ID. The tool suggests one.
- Read the summary, then go through the rows. Old values are struck through and new values are highlighted.
- Narrow the list by type of change, by column or with the search box. Choose a row's label to see all its values side by side.
- Download the Excel report or the CSV of differences, or copy the summary into an email.
Worked example
Input
Two price lists exported a month apart: prices-october.xlsx with 1,204 products and prices-november.xlsx with 1,198. The November list is sorted by category, the October list by SKU.
Setting
Match rows by SKU, the key the tool suggests. Everything else as it comes: numbers compared as numbers, spaces at the start and end of text ignored.
Result
1,189 rows matched by SKU: 9 added, 15 removed, 46 changed (52 cells). Of the changed cells, 41 are in Price, 9 in Stock and 2 in Description.
The 41 price changes add up to +1,284.50. The largest is +120.00 on SKU A-1032, from 89.50 to 209.50, and the largest cut is −25.60 on A-1059. The download, prices-october-vs-november-differences.xlsx, has a Summary sheet, a Differences sheet with 76 lines (one per changed cell, one per added or removed row) and a Rows sheet with every product and the changes highlighted.
Two things in these files are not counted as changes. One description gained a space at its end (A-1976), and one price is stored as 12.300000000000002 instead of 12.3 (A-1928), the kind of rounding noise a formula leaves behind. Untick Ignore spaces at the start and end, and the result becomes 47 changed rows with 53 cells.
Compared by row position instead, the same files give 1,197 changed rows out of 1,198, because the November list is in a different order. That is why a key column is the default.
How it works
Matching rows by key or by position
With a key column, each row is matched with the row that has the same key in the other file, wherever it is. Rows can be inserted, deleted or sorted differently and still line up. A key found only in the old file is a removed row, and a key found only in the new file is an added row.
By row position, row 2 is compared with row 2, row 3 with row 3, and so on. That suits files with a fixed layout, such as a form or a timetable. One inserted row shifts everything below it, so every row after it shows as changed.
In both modes, empty rows are skipped and rows above the header row, such as a title, are left out. The header row is the first row that is at least half as full as the fullest rows near the top of the sheet, and you can pick another one under each file.
Choosing a key column
A good key has a value in every row, a different value in each row, and stays the same from one version to the next: an SKU, invoice number, employee ID or email address. The tool suggests the shared column that fits best. When no single column is unique, two together often are, such as Date and Account; choose the second one under Also match on.
If a key appears more than once, rows with that key are matched in the order they appear, and a note names the repeated keys. Rows with an empty key can’t be matched, so they are left out of the comparison, and a note says how many. Columns are matched by name, ignoring letter case and spaces, so “Unit Price” and “unit price” pair up. A renamed column can be paired by hand under Columns.
Key clean-up handles keys that differ only in form: leading zeros (00123 in a CSV, 123 in Excel), spaces inside the key, or letter case. When unmatched rows would pair up after a clean-up, the tool shows examples and offers to match them.
Comparing values
Numbers are compared as numbers, so 1.50 and 1.5 are equal, and so are 1,284.50 and 1284.5. Computers store most decimals in binary, so 0.1 + 0.2 comes out as 0.30000000000000004 rather than 0.3 (the Python tutorial explains why). To keep that noise from showing up as a change, two numbers count as equal when
|new − old| ≤ max(absolute tolerance, relative tolerance × max(|old|, |new|))
The relative tolerance is 10⁻¹² (one part in a trillion) and the absolute tolerance is 0 until you change them under Comparison options. When both numbers are whole and have up to 15 digits, the 10⁻¹² isn't applied, so a 13-digit barcode or order number that changes by 1 counts as a change. A difference exactly equal to the absolute tolerance counts as equal. Totals in the column summary are added up with compensated summation, so long columns don't collect rounding errors.
Text is compared exactly, except that spaces at the start and end are ignored unless you turn that off. You can also ignore letter case and treat repeated spaces as one. A change that is only spaces or only letter case is labeled that way. Letters that look the same but are stored differently, such as é typed as one character or as e plus an accent, count as equal. A number stored as text, such as “123”, equals the number 123, but “00123” is kept as text, because a leading zero usually means an ID.
Dates
Excel stores a date as a serial number, the count of days from the start of 1900, so 5 July 2011 is 40729. Workbooks can use the 1904 date system instead, where the same day is 39267, 1,462 days lower (Microsoft: Date systems in Excel). The tool reads each workbook's date system and compares the dates themselves, so a 1900 workbook and a 1904 workbook still match.
Serial number 60 is 29 February 1900, a day that never existed. Excel keeps it for compatibility with Lotus 1-2-3 (Microsoft: Excel incorrectly assumes that the year 1900 is a leap year), and so does this tool, so every serial number turns into the date Excel shows.
Dates written as text are read too. 2026-11-05 is always a date. 05/11/2026 is read as day first or month first, worked out from dates such as 25/11/2026 that can only be read one way. If every date in the files could be either, the tool follows your browser's language and says so in a note.
CSV files
CSV files are read as RFC 4180 describes: a field in double quotes can hold commas, line breaks and quotes written twice. The delimiter (comma, semicolon, tab or vertical bar) is the one that gives the most even number of fields per row. The encoding is UTF-8 or UTF-16 when the bytes say so, otherwise Windows-1252 (Encoding Standard). You can change the delimiter, encoding and decimal mark under each file.
A CSV saved by Excel can differ from its workbook in two ways: leading zeros are gone (00123 becomes 123), and numbers and dates are written as the workbook displayed them. Ignore leading zeros in keys handles the first. For the second, when one file is a CSV and the other a workbook, a CSV number or date is compared with what the workbook shows if the workbook column has a number format such as 0.00, #,##0.00, 0.0# or 0%, or a date format: 12.3456 formatted to two decimals shows 12.35 and matches 12.35 in the CSV, and a date whose format hides the time matches the same date. A note says how many cells matched this way. Other numbers are compared in full, including those in the General format and in scientific notation such as 1.23E+04; Ignore differences up to 0.005 hides rounding to two decimals.
What isn't compared
Formatting such as colors, fonts and borders, comments, pictures, charts and macros are not compared. For a formula cell, the tool compares the value Excel last saved, not the formula itself. Hidden rows and columns are compared like any others. The Excel reader follows the Office Open XML standard (ECMA-376).
Your files stay on your device
Both files are read and compared by your browser, in a background task (a Web Worker) so the page stays responsive and Cancel stops a long job at once. Nothing is sent to a server, and the page keeps working offline once it has loaded.
FAQ
How do I compare two Excel files for differences?
Choose the old file and the new file at the top of this page. The tool matches rows by a key column it suggests, such as an ID or SKU, and lists every added, removed and changed row with old and new values side by side. Download the Excel report to keep or share the result.
How do I compare two lists when the rows are in a different order?
Match rows by a key column. Each row is paired with the row that has the same key in the other file, wherever it is, so sorting, inserted rows and deleted rows don't matter. Comparing by row position only works when both files keep the same order.
Can I compare a CSV file with an Excel file?
Yes. Choose a CSV for one version and an .xlsx for the other. Numbers are compared as numbers and dates as dates, so 1.50 in the CSV matches 1.5 in Excel, and 2026-11-05 matches an Excel date. A price that Excel shows as 12.35 matches 12.35 in a CSV saved from it, even if the cell holds 12.3456. If Excel dropped the leading zeros from your IDs, tick Ignore leading zeros in keys.
Does it compare formulas and formatting?
It compares values: what each cell shows after Excel worked it out. Formulas themselves, formatting, comments, charts and macros are not compared. If a formula cell has no saved value, which happens with files made by some other programs, the tool tells you. Open the file in Excel, save it, and try again.
Why are numbers marked as changed when they look the same?
The stored values differ beyond the decimals on screen: 12.504 and 12.499 both show as 12.50. The tool then shows both values in full, so you can see the difference. To ignore small differences, set Ignore differences up to, for example 0.005, under Comparison options. Rounding noise such as 0.30000000000000004 against 0.3 is ignored already.
How big can the files be?
Up to 50 MB and 1,000,000 filled cells per file. For bigger sheets, delete the columns you don't need or save just the part you want as CSV. Everything runs on your device, so a large comparison is quicker on a computer than on a phone.
Are my files uploaded?
No. Both files are read and compared by your browser, and nothing is sent to a server. The Copy link button saves only your settings in the link, never anything from your files.
Can I compare two sheets in the same workbook?
Yes. Choose the same workbook as the old and the new version, then pick a different sheet under each one.
Step by step: why Spreadsheet Compare is missing in most Excel editions and how key matching works. Also see where external links hide after Break Link.
Updated