Find intersection, union, and difference between two lists instantly.
This tool compares two lists using standard set operations. The intersection returns items present in both lists (A ∩ B). The union combines all unique items from both lists (A ∪ B). The difference shows items exclusive to one list — A − B gives items only in A, while B − A gives items only in B. The symmetric difference (A △ B) returns items in either list but not both, equivalent to (A − B) ∪ (B − A). Each operation deduplicates results automatically. Paste your items separated by new lines and click Calculate to see results instantly.
Paste your two lists into List A and List B, then click Calculate. The Intersection result shows all items that appear in both lists. Items are compared exactly as entered when case sensitivity is on.
Intersection returns only items found in both lists. Union returns all unique items combined from both lists without duplicates. For example, if A = [1,2,3] and B = [2,3,4], the intersection is [2,3] and the union is [1,2,3,4].
Yes. The tool automatically removes duplicates from each list before comparison, so repeated entries within a single list are treated as one item. This ensures accurate set-based comparisons.