Compare Two Lists

Compare email lists, product codes, names or IDs: set the matching rules, then copy or export what is missing, what matches and what repeats.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Add list A

    Paste it or open a TXT, CSV or Excel file and pick the column.

  2. 2
    Add list B

    Do the same for the second list and rename both lists if you like.

  3. 3
    Set the rules

    Choose case, spaces, accents, numbering, punctuation and the separator.

  4. 4
    Read the results

    Switch between Only in A, Only in B, In both, All, In one list only and Duplicates.

  5. 5
    Sort

    Keep the original order or sort A to Z, Z to A or naturally.

  6. 6
    Export

    Copy a result, download it, or export a CSV with one column per result.

About this tool

Comparing two lists by eye stops working after twenty lines. Who signed up but has not paid, which SKUs are in the warehouse export but missing from the online shop, which students are on the register but not on the exam list, which email addresses unsubscribed: all of these are the same question about two sets. Paste one list on each side, or open a text, CSV, TSV or Excel file; for a file with several columns a picker asks which column to use and can take the column heading as the list name. Items are split on new lines by default, and a single line separated by commas, semicolons or tabs is detected automatically. The matching rules decide when two items count as the same: ignore upper and lower case, trim spaces at the ends, treat repeated spaces as one, ignore accents so José matches Jose, strip leading numbering and bullets such as 1. or •, and ignore punctuation. The original spelling of the first occurrence is kept in the results, so a list of names still looks right after a case-insensitive match. Six result tabs show the items only in list A, only in list B, in both, the union of everything, the items in exactly one list, and the duplicates inside each list with how many times they appear. A Venn diagram shows the three counts, and the Jaccard similarity tells you what share of all unique items the lists have in common. Results can be sorted in the original order, A to Z, Z to A or naturally so that item 2 comes before item 10. Copy any result, download it as text, send it back into list A for a second round, or export one CSV with a column per result.

Picking the right rules

Email addresses should be compared with Ignore case on, because the mail system ignores case in practice. Product codes and passwords are case-sensitive in some systems, so turn the option off when AB-10 and ab-10 are different things. Names copied from different sources often differ only in accents or double spaces; the accent and space options remove those false differences. Ignore numbering is for lists pasted from a numbered document, where 3. Apple and Apple should match.

Duplicates

A list that should be unique, such as invoice numbers or student IDs, often is not. The Duplicates tab lists each repeated item with its count for both lists, using the same matching rules, so you can fix the source before comparing.

Large lists

Lists of 100,000 lines compare in well under a second on a laptop because each item is looked up in a hash table instead of being compared with every other item. The on-screen list shows the first 2,000 results; copy and download always include all of them.

Limits

Matching is exact after the chosen clean-up, not fuzzy, so Jon Smith and John Smith are different items; use a fuzzy duplicate tool for spelling variants. Excel files are read from the first sheet. Formulas are read as their saved values and cell formatting is ignored. Nothing is uploaded.

Worked example

A club has 1,240 members in its membership CSV and 1,198 people on the newsletter platform export. Picking the Email column in each file, with Ignore case and Trim on, shows 1,163 addresses in both, 77 members not on the newsletter, 35 newsletter contacts who are no longer members and 6 duplicated addresses in the membership file. The Jaccard similarity is 1,163 / 1,275 = 91.2 %. One CSV export holds the 77, the 35 and the 1,163 in separate columns.

Quick facts

Frequently asked questions

Is the comparison case-sensitive?

Only if you want it to be. Ignore upper and lower case is on by default; turn it off when capital letters carry meaning, as in some product codes.

Can I compare a column from a spreadsheet?

Yes. Open a CSV, TSV or .xlsx file and choose the column. If the first row is a heading it can become the list name and is not counted as an item.

What is the union and what is the symmetric difference?

The union is every unique item that appears in at least one list. The symmetric difference, shown as In one list only, is the items that appear in exactly one of the two lists.

Why is an item that looks the same not matched?

Usually an invisible difference: a trailing space, a non-breaking space, an accent or punctuation. Turn on Trim, Treat repeated spaces as one, Ignore accents or Ignore punctuation and compare again.

How many items can I compare?

Several hundred thousand per list work in a normal browser. Very large pastes make the text box slow, so opening a file is faster than pasting.

Are my lists stored or uploaded?

They are not uploaded. The current lists are kept in this browser so undo and redo work after a reload; clear the boxes to remove them.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages