List Comparison Tool
Compare two lists side by side to find unique items, common items, and differences. Supports case-insensitive comparison.
Runs in your browser. No data leaves your device.
About this tool
Compares two lists (one item per line) and shows items only in A, only in B, in both, and all unique items combined. Use it to diff email lists, inventories, user IDs or spreadsheet columns.
Features
- Four views with counts: Only in A, Only in B, Common, All Unique
- Lines are trimmed and empty lines are ignored
- Case sensitive switch (off by default, so "Apple" and "apple" match)
- Every result is a set: each item appears once, in its first spelling
- Set-based lookups, so large lists compare quickly
- Summary cards: item counts of List A and List B, Common and All Unique
- Copy and pipeline buttons for the selected view
How to use it
- Paste the first list in List A and the second in List B, one item per line.
- Choose a view: Only in A, Only in B, Common or All Unique.
- Copy the result.
Inputs
- Two lists, one item per line
Outputs
- Newline-separated result for the selected view, plus counts
Limits and notes
- Matching is exact after trimming (and lowercasing when case-insensitive); there is no fuzzy matching.
- Lists are not saved and nothing is uploaded.
Frequently Asked Questions
How does the List Comparison Tool work?
Each list is split into lines and stored in a JavaScript Set for O(1) lookups. The tool then iterates through Set A checking membership in Set B to find items unique to A, iterates Set B checking membership in A for items unique to B, and intersects both Sets to find common items. Case-insensitive mode lowercases all values before building the Sets.
What results does the comparison show?
Items only in List A, items only in List B, and items common to both lists. This makes it easy to find what was added, removed, or shared between two datasets.
Is the comparison case-sensitive?
Not by default: "Apple" and "apple" are treated as the same item. Turn on the Case sensitive switch to treat them as different.
Can I compare spreadsheet columns?
Yes. Copy a column from each spreadsheet and paste them into List A and List B (one item per line). The tool shows the differences and overlaps instantly.