Compare Two Lists: Find What Is in One and Not the Other
Paste two lists to see what is only in the first, only in the second and in both, with counts and copy buttons. A free list checker in your browser.
Your lists stay in this browser. Nothing is uploaded or sent to a server, and they are not put in the page address.
The tool failed to load. Please reload the page.
Report a problem
Nothing is sent until you press Send.
When to use this
- You have two lists of names, emails, SKUs or words and want to know what is missing from one.
- You want the items that appear in both lists.
- You want one clean list with the repeats taken out.
How to use
- Paste the first list into List A and the second into List B, one item per line.
- Choose whether upper and lower case count as different and whether to ignore spaces around each line.
- Press Compare lists.
- Read the four counts, then copy any result with its Copy button.
Examples
- Fruit lists: A is apple, banana, cherry, date, banana. B is banana, cherry, elderberry, fig. Only in A: apple, date. In both: banana, cherry. Only in B: elderberry, fig. All together: 6 different items.
- Product codes with leading zeros: A is 00123, 00456, 789. B is 123, 00456, 789, 790. In both: 00456, 789. Only in A: 00123. Only in B: 123, 790. The tool compares text, so 00123 and 123 are different codes.
- A comma-separated list against a column: A is red, green, blue on one line; B is green, blue, yellow on three lines. As typed, A is one item and nothing matches, and the page suggests splitting at commas. With Split at commas too ticked: Only in A: red. In both: green, blue. Only in B: yellow.
- Guest lists with different capitals and spaces: A is Ana, Ben, " ben " (with extra spaces) and Cara. B is ben, Dan and Cara. With the default options Ben and ben are the same item, so A has 3 different items. Only in A: Ana. Only in B: Dan. In both: Ben, Cara. All together: 4 different items.
How it works
Each list is split into lines (and at commas if you ask), blank lines are dropped, and spaces around each item are trimmed if that option is on. Repeats are removed, keeping the first spelling. Every item is then looked up in the other list, ignoring case unless you tick it: items with no match go to Only in A or Only in B, and items found in both lists go to In both, in the order of List A.
Understanding the result
Each list is read line by line, blank lines are dropped and repeats are counted once, keeping the first spelling. Only in A are items with no match in B. In both are items found in both lists. Only in B are items with no match in A. All together is List A followed by what is only in B. Results keep the order of your lists.
Assumptions this tool makes
- One item per line. Lines are split at commas only if you tick Split at commas too. Tabs, semicolons and other separators are never split.
- Items match only when the whole line is the same, ignoring case and outer spaces if you leave those options on.
Limitations
- Matching is exact. Near matches such as a typo, a plural or a different spelling are different items.
- Codes copied from a spreadsheet column formatted as numbers may have lost their leading zeros already. Compare the codes as text from the source if 00123 and 123 should be the same thing.
- Accents and other letters are compared as typed. The tool does not treat e and é as the same.
- Lists are limited to 50,000 lines and 1,000,000 characters each. Very large lists may be slow on an old phone.
- It compares text only, not files or spreadsheets. Copy a spreadsheet column and paste it in.
FAQ
How do I find items that are in one list but not the other?
Paste both lists, press Compare lists and read Only in A and Only in B. Those boxes hold the items with no match in the other list.
Does it care about upper and lower case?
By default no, so Apple and apple match. Tick the case option if they should be different.
What happens to repeated lines?
Repeats are counted once and the first spelling is kept. The page tells you how many repeated lines each list had.
How do I find the differences between two lists?
The differences are the two Only boxes: Only in A holds what is missing from B, and Only in B holds what is missing from A. Copy either one with its button.
Can I compare comma-separated lists?
Yes. Tick Split at commas too and a line such as red, green, blue counts as three items. The spaces after the commas are removed when the trim option is on.
Why do two lines that look the same not match?
Usually a hidden difference: a space at the end with trimming turned off, a different capital with case matching on, a leading zero, or a look-alike letter such as an accented e. Turn on trimming and leave case matching off unless capitals really matter.