Compare two Excel or CSV files

See which rows were added, removed or changed between two spreadsheets, with the changed cells highlighted. Download the differences as a report.

Your files never leave your computer: they're opened and processed right here in your browser, and nothing is uploaded.

First file (original)

Second file (changed)

How it works

Choose the original file and the changed one. The comparison shows every row that was added, removed or changed; in changed rows, the cells that differ show the old and the new value (Austin → Dallas). Rows that are the same are hidden unless you untick "Show only the differences".

By default rows are compared in order, and the tool finds rows that were inserted or deleted in between, like a text diff does, so one new row doesn't make every row after it look changed. If your rows can be in a different order (two exports from a database or a CRM), match them by a key column such as an ID. The report you download lists each difference with its row number in both files.

How to compare two sheets in Excel

Excel has no built-in compare for two workbooks in most editions. The usual ways:

  • View side by side: open both files, then View → View Side by Side, with Synchronous Scrolling on. Fine for a quick look at small sheets.
  • A formula: in a third sheet, =IF(Sheet1!A1<>Sheet2!A1, Sheet1!A1&" → "&Sheet2!A1, "") copied across the used range shows the cells that differ. It only works when rows are in the same order.
  • Conditional formatting: select the range in one sheet, Home → Conditional Formatting → New Rule → "Use a formula", with =A1<>Sheet2!A1, to color cells that differ.
  • XLOOKUP or VLOOKUP on an ID column finds rows missing from the other sheet when rows are in a different order.
  • Spreadsheet Compare (Inquire add-in) comes only with Office Professional Plus and Microsoft 365 Apps for enterprise, on Windows.

In Google Sheets

Put both sheets in one spreadsheet and use a formula such as =IF(Sheet1!A1<>Sheet2!A1, "changed", ""), or conditional formatting with a custom formula (Format → Conditional formatting → "Custom formula is"; refer to the other sheet with INDIRECT("Sheet2!A1")). Like Excel's formulas, these compare cell by cell and need rows in the same order.

Questions

Are my files uploaded?
No. Both files are opened and compared by your browser, on your computer. Nothing is sent to a server, so it works for confidential data, and keeps working if you go offline after the page has loaded.
My rows are in a different order in the two files. Will every row show as changed?
Not if you match rows by a key column: choose a column that identifies each row (an ID, SKU, email or order number), and rows are matched by that value wherever they are in each file. Matching "in order" is for files where rows keep their order, like two versions of the same list.
Can I compare two sheets in the same Excel workbook?
Yes: choose the same workbook as both files, then pick a different sheet for each.
Can I compare a CSV file with an Excel file?
Yes. Each file can be CSV or Excel (XLSX, XLS or ODS). Excel numbers are read in full, so a CSV that shows 1.50 and an Excel cell holding 1.5 differ; tick "Numbers that are equal are the same" to ignore that, or read the Excel file's values "as shown in Excel".
Are columns matched by name or position?
By name, when both files have a header row, so it doesn't matter if columns were moved. Columns found in only one file are listed above the result and not compared. Untick "First row is the header" on both files to compare by position instead.
Is there a size limit?
Only your computer's memory. Files of a few hundred thousand rows compare in seconds.