Compare Two Excel or CSV Files (Find Added and Deleted Rows and Changed Cells by Matching an ID Column)

Completely free, with no extra charges. You may freely use the output commercially.

About this tool

If you have two versions of the same spreadsheet, such as last month’s and this month’s customer list, product master, price list or inventory sheet, this tool shows which rows were added, which disappeared and which cells were edited, without hunting through them by eye. Load the two files and it matches rows on a key column such as a customer ID or product code, then lists the added, deleted and changed rows along with every changed cell as “before → after”.

Rows can be in a different order and columns can be rearranged: the tool pairs them up by the key column and the column headers, so the comparison stays correct. Values that differ only in how they are written, such as “1,000” and “1000” or “2026/1/5” and “2026-01-05”, can be treated as equal. You can save the result as an Excel file (.xlsx) with changed cells in yellow, added rows in green and deleted rows in red, or as a CSV list of changes. It reads Excel .xlsx files, CSV and TSV (UTF-8, Windows-1252, Shift_JIS and more) and tables pasted from Excel or Google Sheets. All processing happens entirely in your browser (no data is sent).

Load the two tables to compare

Original (older version)

Drag a file here or choose one. If you drag two files here at once, the first becomes the original and the second the new version.

Paste a table instead

New version

Drag a file here or choose one.

Paste a table instead

How to use it and how the comparison works

Load the two files

Load the older version (last month’s file, the version before your edits, the copy you sent to a client) on the left and the newer one on the right. Excel files can be chosen directly, and if a workbook has several sheets you can switch the sheet to compare. CSV exported from a business system or accounting software, CSV downloaded from Google Sheets and ranges pasted from Excel can be compared in any combination. Even when the formats differ, as with Excel versus CSV, the values are read as text first and then compared.

Match rows on a key column

Choose a column whose value is different on every row, such as a customer number, employee ID, product code or invoice number, as the “key column”, and rows with the same key are compared regardless of their order. When you load the files, the tool looks for columns whose values never repeat and are never empty in either table, preferring columns whose names look like an ID, number or code, and selects one automatically. For tables where one column is not enough to identify a row, such as store plus date, select several key columns and rows are matched on the combination.

  • Changed: the same key exists in both tables but at least one cell value differs. Only the differing cells are highlighted in yellow.
  • Added: a key that exists only in the new version.
  • Deleted: a key that exists only in the original.

If the same key appears more than once in a table, the duplicates are paired from the top down and reported as “duplicate keys”. If there are many duplicates, add another key column so each row can be identified.

Compare tables without a key column by row order

For tables with no column that identifies a row, such as survey responses or work logs, choose “Compare by row order”. Simply comparing row 1 with row 1 and row 2 with row 2 would mark every row after a single inserted row as “changed”, so the tool first pairs up identical rows the way a text diff does (the Myers diff algorithm) to find inserted and deleted rows. It then pairs deleted and added rows that share many values and reports them as “changed”.

Column order, added and removed columns

Columns are matched by their header names, so the comparison works even if the column order has changed. A column that exists in only one table is reported as an added or removed column, and its values are left out of the comparison. Put columns that always change, such as “Last updated” or “Last login”, into “Columns not to compare” so that the differences show only the items that really changed. For a table without a header row, untick “First row is a header” to compare by position (column A, column B, …).

What counts as the same value

A CSV exported by a system and a file someone edited in Excel can write the same value differently. By default, the following differences are not counted:

  • spaces at the start or end of a cell (including full-width spaces)
  • thousands separators (1,000 and 1000), trailing zeros after the decimal point (1.50 and 1.5), percentages (50% and 0.5) and a leading currency symbol ($1,200 and 1200)
  • date separators (2026/1/5, 2026-01-05, 2026年1月5日). Values stored as dates in Excel cells are read in the form “2026-01-05” whatever their display format

Opening a CSV in Excel and saving it again can turn “001” into “1” or a long number into exponential notation such as “1.23457E+11”. With number formatting ignored, “001” and “1” count as the same, so if you want to see lost leading zeros as differences, untick “Ignore number formatting”.

What the saved diff report contains

The file created with “Save diff report as Excel” contains four sheets. “Comparison result” merges both tables into one, showing changed cells as “before → after” in yellow, added rows in green and deleted rows in red with strikethrough, and has a filter applied. “Change list” has one row per changed cell, listing the key, column name, value before and value after. The other sheets show the column mapping with the number of changes per column, and a record of the files and settings that were compared. When you need to tell your manager or a client what changed, you can send this file as it is.

Supported files and limitations

  • Excel files are read in .xlsx and .xlsm format (Excel 2007 and later). Old .xls files and password-protected files cannot be read; open them in Excel and save them again as .xlsx or CSV. .ods files (LibreOffice) can be read after saving them as .xlsx.
  • Only cell values are compared. Formulas are compared by their calculated result (the value at the time the file was saved); font color, fill, comments and merged cells are not compared. The value of a merged cell is treated as belonging only to its top-left cell.
  • Furigana (Japanese reading aids) that Japanese Excel stores with cells are not included in the values.
  • The on-screen table shows at most 1,000 rows with differences. The saved files contain every row. Each file can be up to 50 MB.
  • So that you can use it with files that must not leave your organization, such as customer lists or payroll data, the files are read only inside your browser and are never sent to or stored on a server.

To see line-by-line differences in text or configuration files, use Side-by-Side Text Comparison. To find items shared by two lists or present in only one, use Compare two lists. To combine several CSV files with different column orders into one table, use the CSV Merger.