List Compare — Intersection, Union & Difference
Text
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
Markdown Table to CSV Converter
Convert a GitHub-flavored Markdown table into CSV, TSV or semicolon-separated rows, in your browser.
Markdown Table Generator
Paste CSV, TSV, or pipe-delimited data and get a properly aligned GitHub-flavored Markdown table.
Text Diff Viewer
Compare two pieces of text and see line-by-line or word-by-word additions and removals.
Lorem Ipsum Generator
Generate placeholder text by paragraphs, sentences, or words.
Case Converter
Convert text between UPPER, lower, Title, camelCase, snake_case and more.
Character & Word Counter
Count characters, words, sentences, lines, and bytes in real time.