List Set Operations

Find the union, intersection, or difference of two line-based lists.

Loading List Set Operations...

How to use

Enter one item per line in each list. Results contain one representative per matching key in first-seen order: union scans List A then B; intersection and difference retain List A order.

Example

Input
apple banana
Output
apple banana cherry

Limitations

These are set operations, so duplicates collapse. Case folding uses the browser locale-independent Unicode casing behavior and is not linguistic collation.

Frequently Asked Questions

What does difference mean?

Difference returns unique items in List A whose normalized key does not occur in List B.

Which spelling is kept when case is ignored?

The first spelling encountered in the operation order is kept in the output.