Compare Two Lists
Compare two lists for common entries, items only in either list, duplicates and a combined union, with configurable matching.
Start with your input
Edit the example or replace it with your own text.
Choose your options
These settings are optional. Keep the defaults to get started.
How to use Compare Two Lists
- Paste one item per line into List A and List B.
- Choose whether matching ignores outer whitespace or case.
- Compare to obtain shared values, differences, union and duplicate counts.
Set comparison instead of a line diff
A text diff compares position and order. This tool compares membership: the same item counts as shared even if it appears on a different line. Blank items are ignored. Results retain the first spelling seen for each normalized value and include input counts, distinct counts and duplicates for each list.
Use explicit matching rules
Case-insensitive matching lowercases values for comparison but keeps the first original representation in output. It does not strip accents, normalize phone numbers, or perform fuzzy name matching. When comparing IDs, keep leading zeros and choose case sensitivity according to the system that issued them. JSON output separates only-in-A, only-in-B, shared and union values for further processing.
Example input
Ada Grace Linus Ada
Does changing item order change membership results?
It changes encounter order in the output, but not which values belong to the shared or distinct sets.
Is input uploaded?
Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.