List Compare — Intersection, Union & Difference
Paste two lists (one item per line) and instantly see how they overlap. Pick a mode to get the items in both lists (intersection), only in A, only in B, the combined set (union), or everything that appears in just one list (symmetric difference). Duplicates within each list are collapsed, and you can toggle case sensitivity and trimming. Everything runs locally in your browser — nothing is uploaded.
A: 4 · B: 4 · Result: 2
How to use
- Paste one list into A and the other into B, one item per line.
- Choose a comparison mode (in both, only A, only B, union, only one).
- Toggle case sensitivity or trimming, then copy the result.
Frequently asked questions
- Are duplicate lines counted?
- No. Each list is de-duplicated first, so an item that appears multiple times in a list is treated as one. The item counts shown reflect the unique items in each list.
- What does 'only in one list' mean?
- It is the symmetric difference: every item that is in exactly one of the two lists (the items only in A plus the items only in B), excluding anything they share.
- How does case sensitivity work?
- When off (the default), Apple and apple are treated as the same item. Turn it on to compare exactly, including letter case.
- Is my data sent anywhere?
- No. The comparison happens entirely in your browser; nothing is uploaded.
Related tools
Semver Tools (Parser, Comparator, Bumper)
Parse, compare, and bump semantic versions side-by-side, with a range expander that shows what ^x.y.z and ~x.y.z actually cover.
Time Difference Calculator
Calculate the exact difference between two date-times, broken down into days, hours, minutes, and seconds.
HTTP Headers Reference
Searchable reference for ~50 standard HTTP request, response, CORS, caching, security, and cookie headers.
Text Diff Viewer
Compare two pieces of text and see line-by-line or word-by-word additions and removals.
Line Formatter — Add Prefix, Suffix & Join
Wrap each line with a prefix and suffix and join them with any separator, in your browser.
Character & Word Counter
Count characters, words, sentences, lines, and bytes in real time.