Skip to main content
OS Authority

Compare CSV files by key column

Find what changed between two CSV exports. Match rows by a shared identifier such as a SKU or order ID, then see added rows, removed rows and the before and after values of changed cells.

Both files are read in this browser tab. The tool does not upload or store the files, or send their names and contents to analytics.

How it works

  1. Choose the older export as Original CSV and the newer export as Revised CSV.
  2. Choose the delimiter used in both files. The first record in each file must contain the column names.
  3. Under Match rows by, choose a column with a distinct, nonblank value for every row in each file.
  4. Select Compare CSV files and review the row counts and changes.

Match records even when rows move

Suppose an original stock export has IDs 00123 and 00124, and the revised export has 00125 and 00123. The comparison matches 00123 wherever it appears, flags 00124 as removed and flags 00125 as added. If the quantity for 00123 changed from 15 to 18, the report shows both values.

How columns and values are compared

Columns match by their exact header names, so rearranging columns does not count as a change. A renamed header appears as a removed column and an added column. Cell text stays as entered, including leading zeros, letter case and spaces. A missing column and an empty cell are shown separately. The report displays up to 12 changes at a time and includes controls to move through the results.

Frequently asked questions

Can I compare CSV files with a different row order?

Yes. Rows are matched by the selected key column, so sorting either file does not create changes by itself.

What if an ID is blank or appears twice?

The comparison stops and identifies the file and data row with the invalid key. Choose another unique column or correct the original export.

Does this work with semicolon or tab separators?

Yes. Choose comma, semicolon, tab or pipe to match both files. Use UTF-8 files, and put any separators or line breaks within a cell inside double quotes.

Will this change either of my files?

No. The tool reads both files and displays a comparison in your browser. Your originals remain available as they were.

Sources

Last reviewed: December 4, 2026

Related tools