Compare list membership, not document revisions
List comparison asks whether an entry appears in one collection, another collection or both. It is useful for checking a checklist against an inventory, comparing two exported columns of identifiers, or finding which labels still need to be added.
This tool treats each list as a set of unique entries. Reordering entries does not change membership, and repeating an item does not add another member. To compare wording, line order or repeated occurrences in two versions of a document, use Text Diff to compare text instead.
How to compare two lists
- Paste one entry per line into Input A and Input B.
- Choose matching rules. All ignore/normalization options start off, so exact matching is the default.
- Choose Result to export: Shared, Only in A, Only in B or Union.
- Select Compare lists. Check the group counts and duplicate totals in the result.
- Copy or download the selected group. To export another group, change the selection and compare again.
Up to 1 MiB is accepted per input. The browser processes both lists locally, and the original entries remain in the input boxes.
Understanding shared, missing and combined entries
- Shared: unique entries that occur in both A and B.
- Only in A: entries from A without a matching entry in B.
- Only in B: entries from B without a matching entry in A.
- Union: all unique entries from both lists.
Only in A means missing from B; it does not mean the item is incorrect or should be deleted. Decide which list is the reference before interpreting the result. If A is empty, Only in B and Union contain B’s unique entries. An empty Shared result can simply mean the lists have no members in common.
List comparison example
Input
Input A: apple pear pear Input B: pear cherry
Result
Shared: pear Only in A: apple Only in B: cherry Union: apple, pear, cherry Duplicates in A: 1 Duplicates in B: 0
The commas in this explanation summarize the members; the actual exported group uses one entry per line. The repeated pear contributes to the duplicate count but does not appear twice in Shared or Union.
Matching rules and preserved spelling
Default matching distinguishes case, edge whitespace and Unicode spellings. Ignore letter case lowercases comparison keys using the English locale default. Ignore surrounding spaces trims whitespace from each key. Normalize Unicode (NFC) makes canonically equivalent forms comparable, such as an accented letter represented in two equivalent ways.
The original spelling is preserved in the output. Shared and Only in A use A’s first matching occurrence and its order. Only in B uses B’s first occurrences. Union starts with A’s unique entries, then adds previously unseen entries from B. There is no option here to keep the last duplicate spelling.
Internal spaces and punctuation remain significant. NFC does not remove accents or merge all look-alike letters. Apply broader matching only when your task considers those differences irrelevant.
Blank entries, repeated items and other common mistakes
Internal blank lines count as entries. One final newline is a terminator, not an extra item. If both lists contain an internal blank line, their Shared group may include an empty entry. With surrounding-whitespace matching enabled, a spaces-only entry can match an empty one.
A comma-separated row is one line, not several entries. For a simple delimiter-separated list, use Find and Replace to split the items first. For CSV with quotes or multiline fields, use the data tools to inspect its records before extracting a column.
Use Remove Duplicate Lines when the task involves just one list or requires retaining the last occurrence. Use Alphabetize List after comparison when the output needs alphabetical order. The comparison guide explains why membership and sequence comparisons can return different answers for the same inputs.
Processing and privacy
Compare Lists works on the two pasted lists locally; membership results are not sent anywhere. Input stays in browser memory until you reset or leave the page. Copy and download run only when you choose them. No tool input is sent to a processing service. Website pages and scripts still make ordinary hosting requests; the privacy policy separates those from tool processing.
Frequently asked questions
Can identical members in a different order count as a match?
Yes. Membership ignores position. The output still follows the documented first-seen order. Text Diff is the appropriate tool if the reordered sequence matters.
Does Union keep duplicate copies from both lists?
No. It keeps one member per comparison key, using A’s first spelling where both lists contain a match.
Why is the output empty when some result counts are nonzero?
Copy and Download use the selected Result to export group. A different group may contain entries even when the selected group is empty.
Are values compared as text or as numbers?
As exact text after the selected options. Leading zeros are part of the value, so 01 and 1 are different members.
Can I compare lists of different lengths?
Yes. Equal length is not required; the result reports shared, only-A, only-B and union members separately.
How this tool was checked
Compare Lists was checked with duplicates inside each list, case and trim options, Unicode normalization, empty lists and each of the shared, only-A, only-B and union export views. See the testing method or report a failure.