mkdiff

CSV Comparison

Compare two CSV files and find differences

Compare CSV files by key column

Match records by an ID or a combination of columns, even when rows or columns move. Review added, removed and changed records, then copy or download a cell-level change report.

CSV contents are processed on this device. UTF-8 files up to 2 MiB, 10,000 data records, 100 columns and 200,000 data cells per file. No sign-up.

Both inputs need the same unique header names; column order may differ. Quoted commas, escaped quotes and quoted line breaks are supported. Empty physical lines are skipped. Values, case, spaces and leading zeroes are otherwise compared exactly.

How to compare exports with different row orders

  1. Paste or choose the old and updated CSVs, select their delimiter and load them.
  2. Choose a stable key such as an ID or SKU. Add a second column when the first is not unique.
  3. Compare, review the record counts and cell changes, then copy or download the report.

The sample moves both rows and columns: ID 102 changes status, 103 is removed, 104 is added, and 101 stays unchanged. With key id, expect one changed, one removed, one added and one unchanged record.

Why did the comparison stop?

Duplicate keys make matching ambiguous. Add another key column or fix the duplicate; blank keys also need correction. Header names must match exactly, but column order may differ. Fix invalid quotes, inconsistent field counts or the delimiter and use Load CSVs again.

What does this comparison leave out?

Keys and cell values use exact, case-sensitive text. For example, 001 and 1 are different keys; 10 and 10.0 are different values. A changed key appears as a removal and an addition. Renamed columns and different schemas need to be aligned first. Comparisons with more than 50,000 cell differences or an 8 MiB report stop without producing a partial report.

Need a different view? Inspect a CSV table, compare Excel files or compare JSON.