Compare two Excel files
Two files in, every change highlighted: a cell-level visual diff plus key-column reconciliation. Free, in your browser.
What is Compare two Excel files
Comparing two workbooks answers one question: what changed between the old version and the new one. This tool does it two ways. Cell-by-cell mode aligns both sheets row by row and highlights every changed cell, every row that exists only in one file, each with its cell address. Key-column mode matches rows by an ID you choose — an order number, not a customer name — and reports rows that were added, rows that are missing, and rows whose values moved. Comparison uses the values you see in Excel, not stored serial numbers, so 1200 and 1200.00 count as different and the page says so instead of hiding behind a count.
Original file
xlsx / xls / csv (up to 30 MB)
Changed file
xlsx / xls / csv (up to 30 MB)
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
Two modes, two questions
Cell-by-cell mode answers "which cells are different?" — both sheets are laid out row by row, changed cells are highlighted on both sides, and rows that exist in only one file are colored green (added) or red (deleted), each change carrying its cell address like D47. Key-column mode answers "which records moved?" — rows are matched by an ID you pick, so files whose rows were re-sorted, appended or partially deleted still compare correctly, which row alignment alone cannot do. Pick cells when the two files are consecutive versions with the same row order; pick key mode when rows may have moved between versions.
Why identical-looking cells count as changes
The comparison runs on the values you see in Excel, not on stored serial numbers — but displayed formatting still varies: 1200, 1200.00 and the text "1,200" are three different cell values even though they mean the same number. A wall of amber highlights usually means a formatting change, not a data change: scan the change list for cells whose old and new values look numerically equal before you treat every highlight as a real edit. Dates behave the same way — a regional format switch can produce a column of differences that are all the same day.
When not to use it
When the key is not unique. Key mode matches only the first occurrence of each key and reports how many duplicates were skipped — a table keyed by customer name silently compares one order per customer, so add an order ID column first. Also decide which file is the reference before you run it: swapping the two files turns every added row into a missing one while the totals stay the same, which is easy to miss and hard to notice later. Files are capped at 30 MB and 2,000 rows per sheet; larger workbooks need the range trimmed first, and the tool says so instead of quietly comparing a truncated copy.
How to use it
- 1.Choose the original file and the changed file (both stay in your browser).
- 2.Pick a mode: cell-by-cell for versions in the same order, key-column for re-sorted data.
- 3.Read the highlights and the change list — every difference shows its cell address.
How Compare two Excel files works under the hood
An .xlsx file is not a table — it is a ZIP archive of XML parts. Everything you see as a grid is rebuilt from cell references on this page, in memory, without a round trip to a server.
- 1
Read the file as bytes
The file is read into an ArrayBuffer with the File API. This is a local read, not a request — nothing leaves the tab.
- 2
Unzip and parse the workbook
SheetJS inflates the archive, reads workbook.xml for sheet order, sharedStrings.xml for text, and each sheet's XML for cells and types.
- 3
Rebuild rows in memory
Cells are placed by their A1 reference, gaps become empty cells, and the sheet is materialised as a two-dimensional array.
- 4
Write the output locally
The result is serialised to CSV text or a new workbook and handed to the browser as a Blob download.
Processing pipeline
Why formulas arrive as values
A spreadsheet stores two things per formula cell: the formula text, and the value Excel last computed and cached. A browser parser reads the cached value. Making the formula itself run would mean reimplementing Excel's calculation engine — including volatile functions, circular-reference detection and locale-specific parsing. So the exported CSV contains what you last saw on screen, not a live formula.
What has no CSV equivalent
Merged cells, cell fills, fonts, conditional formatting, comments and pivot tables have no representation in a comma-separated file. A merged cell becomes its value in the top-left position and empty cells elsewhere. Dates are written as dates only when the cell is typed as a date; a date stored as text stays text. These are format limits, not bugs.
Where it gets slow
Parsing is linear in cell count, and the browser holds the whole workbook in memory. A 30 MB file with a million populated cells can take several seconds and a few hundred MB of RAM; the tab may feel frozen while SheetJS works. Splitting the file by sheet, or exporting only the range you need, is faster than retrying with a bigger limit.
Verify it yourself
You do not have to take this on faith. Run the tool once with DevTools open.
- 1.Open DevTools on this page and switch to the Network tab
- 2.Keep the filter on Fetch/XHR and run the tool
- 3.Confirm no request carries your file — you should see only page assets and fonts
Frequently asked questions
Which comparison mode should I use?
Cell-by-cell when the two files are versions of the same table with rows in the same order — a monthly export, a re-downloaded report. Key-column mode when rows may be added, deleted or re-sorted between versions: matching by an ID survives reordering, row alignment does not.
Why do identical-looking cells count as changes?
The comparison runs on displayed values, so 1200, 1200.00 and the text "1,200" are three different cells. That is the honest answer — Excel itself stores versions of these differently — but it is also why a wall of amber usually means a formatting change, not a data change.
What happens with duplicate keys?
Only the first occurrence of each key is matched, and the page tells you how many duplicates were skipped. A key that is not unique — customer name instead of order ID — will silently under-compare, which is a data problem to fix before comparing.
Is my file uploaded to a server?
No. The workbook is opened and rewritten by JavaScript in this page. There is no upload request — you can disconnect the network after the page loads and it still works.
What happens to formulas and formatting?
This tool reads cell values and writes a clean new workbook. Formulas arrive as their last calculated value, and cell styling, merged cells, conditional formatting and comments are not carried over. If you need the original styling, keep the source file.
What is the file size limit?
30 MB per file. Larger workbooks are rejected before any processing starts, so a big file will not hang the tab.
What this kind of conversion cannot keep
Spreadsheet conversion is lossy by nature: a workbook carries formulas, styles, merged cells and multiple sheets, while CSV carries rows of text. This tool keeps values and order, recalculates nothing, and drops presentation on purpose. That is why it can run without a server — and why a converted file will not look like the original.
More in Spreadsheets & Docs
On this page
- What is Compare two Excel files
- What this tool actually does with your file
- How it actually behaves
- How to use it
- How it works inside
- Frequently asked questions
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →