Slicelytics monogram

CSV Diff: Compare Two CSV Files

Compare two CSV exports row by row and column by column. See which cells changed, with the old and new value of each, instead of a text diff of whole lines. Nothing is uploaded.

  • Nothing is uploaded
  • Free, no sign-up
  • Large and compressed files
sku
name
category
price
stock
warehouse
updated_at
8 items
8 items

Here you will see the semantic difference between your datasets.
Use the filtering options above to easily understand and compare your data.

The demo compares a shop's inventory export from Monday with Tuesday's. Open your own two files with the buttons above, or drop each onto its side. For more room, open the full app, which opens with the files you opened here.

How to Compare Two CSV Files

  1. Open the older export with Open the First CSV File and the newer one with Open the Second CSV File. TSV and semicolon-separated files work too.
  2. The diff lists the rows that differ, and in each, only the columns that changed: e.g. the second row's price from 29.5 to 27.5.
  3. Type a column name in Filters, e.g. stock, to see only how that column changed.

Cells, Not Lines

A text diff flags a whole line when one cell in it changes, and every line when a column is added or moved. Spreadsheet compare features need both files open in Excel, with its row limit. Slicelytics reads each row as named values, so the diff is per cell:

  • Column order doesn't matter: cells are matched by their column name.
  • Numbers are compared as numbers:89.00 in one file and 89 in the other are equal.
  • Added and removed columns: shown as added or removed cells, while the cells that didn't change stay out of the diff.
  • Large exports: both files stream into your browser, with no row limit.

Rows Are Matched by Position

The first row is compared with the first, the second with the second. That suits exports of the same query, sorted the same way. If one file has rows inserted or sorted differently, every row after that point shows as changed: sort both by the same key column before you export them, e.g. ORDER BY id.

Keep Exports Off Third-Party Servers

CSV exports carry customer, financial and HR data that compliance rules keep off third-party servers. Both files are parsed and compared in your browser tab, and never uploaded. Comparing a CSV with a JSON export of the same data? See Compare JSON and CSV.

Common Questions

How do I compare two CSV files for differences?

Open both here. Each row is read as named values, and the diff lists the rows that differ with only the cells that changed, each with its old and new value.

Does it matter if the columns are in a different order?

No. Cells are matched by column name, so moving a column doesn’t count as a change. Adding or removing one does, and shows as such.

Can I compare CSV files with millions of rows?

Yes. Both files are streamed into your browser a batch at a time, without Excel’s 1,048,576-row limit. The diff covers the rows loaded, and Load more brings in the next batch of both files.

Are the files uploaded to compare them?

No. Both files are read and compared in your browser, and never sent to a server.

More Free Tools

Guides