List Comparator (Compare Two Lists)

Text Tools

Find what is in both lists, or in only one

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB
Add a file · .txt .md .csv .json … · up to 2.00 MB
Embed this tool on your websiteFree
  1. Choose how tall the frame should be.
  2. Press Copy code.
  3. Paste it into your page, blog, WordPress or Notion HTML block.
Height

The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.

Similar tools you may like

History

All history →
About this tool

Comparing two lists: who is in both, who is only in one, and the full combined list

Which customers are on your mailing list but have not bought anything? Who from the class did not turn up for the exam? Which items on the new price list were missing from the old one? These are questions about two lists, and doing it by eye does not work past about twenty rows. Paste one list in each box, pick what you want to see, and the answer is there at once.

The four results

One click shows the result you choose, and the counts for all four are always shown underneath so you can see the whole picture.

ModeShowsThink of it as
In bothItems that appear in A and in BThe overlap
Only in AItems in A that are not in BWhat B is missing
Only in BItems in B that are not in AWhat A is missing
UnionEverything from A and B combined, each item onceThe merged master list

A small example

List A is apple, banana, cherry, date. List B is banana, date, elderberry, fig.

  • In both: banana, date
  • Only in A: apple, cherry
  • Only in B: elderberry, fig
  • Union: apple, banana, cherry, date, elderberry, fig

The counts shown would be 2, 2, 2 and 6. Notice that 2 + 2 + 2 = 6: the three groups together make up the union, which is a good sanity check on any result.

How items are matched

  • Each line is one item. Spaces at the start and end of a line are ignored, and blank lines are skipped.
  • Ignore case is on by default, so “Rahul” and “rahul” are the same person. Turn it off when capitals really matter, for example in codes.
  • Each result list shows an item once, even if it appears many times in your input.
  • The spelling you see comes from the first list when an item exists in both.
  • You need items in both boxes. If List B is empty, the tool asks you to add some.

Where it earns its keep

  • Mailing lists and customers. Find the people on your newsletter list who have not bought (Only in A), or merge two lists without duplicates (Union).
  • Attendance. Compare the class roll with the names present. “Only in A” is the absent list.
  • Inventory and orders. Which ordered items are missing from the delivery? Which products are in the shop system and not in the warehouse system?
  • Keyword research. Compare your keywords with a competitor’s, and see the overlap and the gaps.
  • Event invitations. Who was invited and has not replied? Who replied without being invited?
  • Subscriptions and accounts. Which users exist in one system and not the other after a migration?
  • Voter, student or roll-number lists. Find items in one list that are absent in another.

Why your lists may not match when they should

The most common problem is not the tool but small differences in the data. Two items that look identical to you can be different to a computer:

  • Extra spaces inside an entry. “Rahul Sharma” (two spaces) is not “Rahul Sharma”. The ends are trimmed, but the middle is not changed. Clean it first with the Whitespace Cleaner.
  • Different spellings or short forms, such as “Mumbai” and “Bombay”, or “Rahul S.” and “Rahul Sharma”.
  • Different formats of the same value, such as a phone number with and without +91, or dates written two ways.
  • Invisible characters copied from a website or a PDF.
  • Mixed order of names, such as “Sharma Rahul” and “Rahul Sharma”.
If a result looks wrong, pick one item you expected to match and compare it letter by letter in both boxes. The reason is nearly always a space or a character you cannot see.

List Comparator or Text Diff?

They answer different questions. Text Diff compares two versions of the same text line by line, and cares about the order. List Comparator treats each box as a set, ignores the order, and answers who-is-in-what. If your lines are in different order and you only care whether an item exists, this is the right tool.

Tips for big lists

  1. Copy a whole column out of Excel or Google Sheets. Each cell becomes one line, which is exactly the format the tool wants.
  2. Remove headings from the columns before you paste them in, or they will be counted as items.
  3. Run Only in A and Only in B separately, and paste each result into its own column or sheet.
  4. Check the four counts. If In both is 0 on two lists that you know overlap, the data format differs.

Privacy

Both lists stay in your browser. Nothing is uploaded, which is useful when the lists contain names, emails or phone numbers of real people.

List Comparator (Compare Two Lists) — at a glance

See how two lists overlap in seconds.

You paste
apple
banana
Compare Lists
Result
banana
date

How to use it — step by step

List A in the top box and list B in the second box, one item per line.

1

Add your text

Paste or type your input into the box. The Sample button fills in an example.

2

Choose the options

Pick the mode and settings you need. Results update when you run the tool again.

3

Press Compare Lists

The result is made instantly inside your browser.

4

Copy the result

Use the Copy button, or send it to another tool.

Pro tips

Small things that make the result better.

✦Turn on "Ignore case" so Apple and apple match.
✦Use "Only in A" to find what is missing from B.
✦Spaces at line ends are trimmed.

Quick facts

Freeno signup
Privateruns in your browser
Instantresult in a second
No limituse it as often as you like

Frequently Asked Questions

What is List Comparator?+

Compare two lists and see the items in both, only in the first, only in the second, or all combined without duplicates. One item per line, with options to ignore case and spaces.

How do I use List Comparator?+

Open List Comparator on this page, then: 1. Add your text 2. Choose the options 3. Press Compare Lists 4. Copy the result. Everything runs in your browser on a phone or computer.

What does Union mean?+

Every item from both lists, with duplicates removed.

Does the order stay the same?+

Yes. Results keep the order they first appear in.

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

Is this tool really free?+

Yes — completely free, no signup, no watermark and no usage limit.

Also searched as: list comparator · compare two lists · list diff · find common items in two lists · list comparator website · list comparator no signup

More Free Tools