All tools

Set Operations

Union, intersection, difference, symmetric difference of two lists.

Union (A ∪ B)
6
apple
banana
cherry
date
elderberry
fig
Intersection (A ∩ B)
2
banana
cherry
A − B
2
apple
date
B − A
2
elderberry
fig
Symmetric difference
4
apple
date
elderberry
fig

Union: items in A or B. Intersection: items in both. Difference (A − B): in A but not B. Symmetric difference: in exactly one. Useful for comparing email lists, identifying duplicates between datasets, or set algebra exercises.

About

Paste two lists (one item per line). The tool computes union (A ∪ B), intersection (A ∩ B), A − B, B − A, and symmetric difference. Toggle deduplication and case sensitivity.

How to use

  1. Paste set A and set B.
  2. Read the five outputs.

FAQ

Useful for what?+

Comparing email lists for opt-outs, finding shared dependencies between two projects, deduplicating CSV exports, or any time you need set algebra without breaking out a programming language.