Compare Text Lists — Common and Unique Items
Compare two lists with intersections, differences and unique unions
Runs in your browser · nothing is uploaded
One line is one item. Empty lines and duplicates are removed, keeping the first spelling. Unicode normalization and language-specific case folding are not applied.
0 results · 0 in A · 0 in B (unique)
How to use
- Paste one item per line into List A and List B.
- Choose common items, only A, only B, all unique items or items in only one list.
- Set whitespace trimming and case matching options.
- Review the counts and copy the result.
Set operations
The intersection contains items present in both lists. The A difference contains items from A that are absent from B; the B difference does the reverse. The union includes every unique item. The symmetric difference includes items found in exactly one list.
Results keep List A order first and append B-only items when the selected operation needs them. Empty lines are removed. With trimming disabled, surrounding whitespace becomes part of an item, so otherwise identical lines may compare differently. Case-insensitive matching uses ordinary lowercase conversion, not language-specific case folding. Accents and Unicode normalization forms are not changed: visually identical composed and decomposed strings can remain distinct.
Example
If A contains 사과, 中文 and 😀, while B contains 中文, 😀 and 배, their intersection is 中文 and 😀. Only A contains 사과, only B contains 배, and the union contains four items.
Limits and privacy
The combined input limit is one million characters. This is a set comparison tool, so it does not compare duplicate frequencies or track line moves like a diff viewer. Every operation runs in your browser without uploading or storing your lists.
FAQ
Can an item contain several words?
Yes. Each complete line is one item. Spaces and commas do not split a line into multiple items.
Does it compare duplicate counts?
No. It uses set semantics: each item is counted once. The result and source counts all show unique items after the selected normalization.
Which spelling survives when case is ignored?
Comparison uses JavaScript lowercase conversion, but output keeps the first original spelling. List A takes priority for common items and the union.