Compare Two Lists
Compare two lists and show what they share and what only one of them holds, item by item.
What this page computes
Paste one list in the main box and the second in the field beside it, one item per line. The page trims each line, compares whole items, and prints three sets: what both lists hold, what only the first holds and what only the second holds, with a count on the first line. The order of your input is kept inside each set rather than sorted, so the output reads like the list you pasted.
Where it stops
Comparison is exact text after trimming, so Ann, 4 and Ann,4 are different items and Red does not match red. There is no fuzzy matching, no column selection and no CSV parsing: an item is a whole line. Very long lists are truncated in the display after twelve items per set, with the remaining count shown, because a wall of text is not a comparison.
Both lists are compared in this tab. Nothing is uploaded, nothing is stored, and the same two pastes always print the same three sets.
Two lists in, three sets out: what both hold, what only the first holds and what only the second holds, with a count above them. The items are trimmed lines compared as exact text.
Case matters and an item is a whole line, so `Ann, 4` and `Ann,4` are different entries and `Red` does not match `red`.
How to use it
One item per line in each box, then press Run. The first line counts the three sets, and each set is listed underneath in the order the item first appeared.
The comparison
Both lists are trimmed and put into sets, so membership is a hash lookup rather than a scan. An item in both lists is shared; an item in one only is listed there, and the count on the first line is the size of each set.
Where it stops
An empty second list is refused rather than reported as everything being unique. Whitespace inside a line is kept, so `Ann , 4` differs from `Ann, 4`; the page does not parse CSV quoting and does not sort either output.
What to Expect
Best for
- Two lists in, three sets out: what both hold, what only the first holds and what only the second holds, with a count above them.
- Seeing the result before copying it.
What this tool keeps
- Your input is converted in the browser and never posted, so the page works offline and retains nothing.
Sample input
red, blue, green against blue, green, yellow
Sample output
2 shared, 1 only in A, 1 only in B Only in A: red Only in B: yellow Shared: blue, green
Frequently asked questions
How do I use it?
Paste the first list in the main box and the second in the field beside it, one item per line, then press Run. The counts come first, then the three sets in order.
Is anything uploaded?
No. The text is converted in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once loaded.
What are its limits?
Comparison is exact text after trimming, with no fuzzy matching, no column selection and no CSV parsing. Long sets must be truncated in the display after twelve items, with the remaining count shown.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.