AZ Tools

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.

Result

A: 4 · B: 4 · Result: 2

How to use

  1. Paste one list into A and the other into B, one item per line.
  2. Choose a comparison mode (in both, only A, only B, union, only one).
  3. 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