How to compare two lists and find the differences

Which emails are only in the new export? Which SKUs disappeared? Put one item per line, normalize both lists, and a diff answers it instantly.

Updated November 14, 2026

The quick method

  1. Paste the first list into the left box and the second list into the right box, one item per line.
  2. Open Tools and apply Sort lines A → Z to Both. Sorting puts matching items on the same lines, so the order of the original lists stops mattering.
  3. Apply Remove duplicate lines to both if repeated items aren't meaningful to you.
  4. Read the result: lines marked as removed are only in the first list; lines marked as added are only in the second.

Everything runs in your browser, so this is safe for customer emails or internal IDs.

Normalize before comparing

Lists from different systems rarely match character for character. A few normalizations remove false differences:

Lists with several columns

If each item has several fields (a CSV export with ID, name and price, for example), compare it as a table instead. The CSV comparison matches rows by a key column such as the ID, regardless of order, and tells you which fields changed for each record. For Excel files, use the Excel comparison.

Doing it in a spreadsheet or the command line

In Excel or Google Sheets, =COUNTIF(B:B, A2)=0 next to each item in column A flags items missing from column B. On the command line, comm does the same for sorted files:

sort -u list-a.txt > a.sorted
sort -u list-b.txt > b.sorted
comm -23 a.sorted b.sorted   # only in A
comm -13 a.sorted b.sorted   # only in B

A visual diff shows both directions at once and lets you fix inconsistencies on the spot, which is often quicker for one-off checks.

Compare two lists

More guides