Skip to content

Compare Two CSV Files

See which rows were added, removed or changed between an old and a new CSV file.

Processed on your device. Nothing is uploadedHow to check

Try a sample file:

You can also paste CSV or JSON text with Ctrl+V (⌘+V on a Mac).

Paste text instead

Pasted text stays in this tab and is never sent anywhere.

Compare CSV files online without uploading them: choose the old and the new version of an export, pick the key column that identifies each row, and see every added, removed and changed row. Changed cells are marked with their old and new values, columns found in only one file are named, and the differences can be downloaded as a CSV with a change column for your records or a report.

Why use Compare CSV

  • Matched by key, not by line

    Rows are paired by a key column such as an ID, so a sorted or reordered file doesn't show false changes.

  • Private

    Both files are compared by your own browser and never sent to a server, so nobody else sees them.

  • Works offline

    Once this page has loaded, comparing keeps working without an internet connection.

How it works: compare two CSV files

  1. Choose the old and new files

    Choose or drop the older CSV first, then the newer one. Each file's delimiter and encoding are detected for you.

  2. Pick the key column

    Choose the column that identifies each row in both files. An ID column is picked for you when one is found.

  3. Review the differences

    See the added, removed and changed rows. In a changed row, each changed cell shows its old value and its new value.

  4. Download the differences

    Download a CSV of the differences, with a change column that says added, removed or changed for every row.

What Compare CSV handles

  • Files: two .csv files, old and new, with comma, semicolon, tab or pipe delimiters.
  • Encodings: UTF-8 with or without a BOM, UTF-16 (when the file starts with a byte order mark), Windows-1256 for older Arabic files and Windows-1252 for older Western European files.
  • Rows: added, removed and changed rows, paired by the key column in any order.
  • Columns: columns that exist in only one of the files are named.
  • Problems: rows with an empty key or a key that appears more than once are reported.

Compare CSV: what it can't do

  • Both files need a header row and a key column they share; without a key, rows can't be paired.
  • Rows with an empty key are reported but not compared; for a repeated key, only its first row is compared.
  • Values are compared as text, so 1.0 and 1 count as different.

Compare CSV: questions

Is my file uploaded?
No. Both CSV files are read and compared by your browser, on your device, and are never sent anywhere. Nothing is saved on the site, and there are no share links or history.
What is a key column?
It is the column that names each row uniquely in both files, such as a customer ID, an order number or a product code. Rows with the same key are compared with each other, wherever they sit in the file.
Does the order of the rows matter?
No. Rows are paired by their key, so a file that was sorted differently shows only the real changes.
What if a key is empty or appears twice?
A row with an empty key cannot be paired, so it is counted and left out of the comparison. A key that appears more than once is listed, and only the first row with it is compared. Fix the key in the file and compare again.
What if the files have different columns?
The columns found in only one file are named above the results, and the columns both files share are compared.
Can I save the differences?
Yes. Download them as a CSV with a change column (added, removed or changed) and open it in Excel or the CSV viewer.
How do I compare two CSV files to find the differences?
Open the older CSV, then the newer one, and pick the column that identifies each row, such as an ID: the added, removed and changed rows are listed. OpenAnyDoc compares them in your browser without uploading either file, and you can download the differences as a CSV.

Why it's private: your files never leave your browser

Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.

How we tell you about new features

Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.