×
List Comparison Operations Guide
Compare two lists of text using various operations. Each item should be on a new line.
1. Intersection (A ∩ B)
Finds and counts items that appear in both List A and List B.
List A: List B: Result:
apple banana banana (2 times)
banana cherry cherry (2 times)
cherry grape
date banana
2. Union (A ∪ B)
Combines both lists and removes duplicates.
List A: List B: Result:
apple banana apple
banana cherry banana
cherry grape cherry
date kiwi date
grape
kiwi
3. In A - Not B (A - B)
Shows items that appear only in List A and not in List B.
List A: List B: Result:
apple banana apple
banana cherry date
cherry grape
date kiwi
4. In B - Not A (B - A)
Shows items that appear only in List B and not in List A.
List A: List B: Result:
apple banana grape
banana cherry kiwi
cherry grape
date kiwi
5. Symmetric Difference (A - B) ∪ (B - A)
Shows items that appear in either List A or List B, but not in both.
List A: List B: Result:
apple banana apple
banana cherry date
cherry grape grape
date kiwi kiwi
Additional Features:
- Upload text files (max 1MB) to populate lists
- Real-time line count for each list
- Case-insensitive comparison
- Copy results to clipboard
- Clear all inputs and results