Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

Compare Two Lists

Find union, intersection, differences, duplicates, and frequencies between two lists instantly

Your files never leave your browser
List A
0 items
1
List B
0 items
1
Set Ops
List AList B
1

Paste two lists, pick an operation — union, intersection, difference, symmetric diff, or duplicate check — and get the filtered result with a count. Faster than VLOOKUP and way less annoying than eyeballing rows in a spreadsheet.

And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste Two Lists
➔
Pick Operation
➔
Get Results

Each list gets split by line breaks, trimmed, and cleaned of blank entries. JavaScript’s Set structure handles the actual comparison. So even with 50,000 items per list, results show up in under a second. But honestly, most people compare a few hundred items at a time — and for that it is instant.

Examples

Finding shared subscribers across two platforms

Your Mailchimp export and Salesforce contacts overlap somewhere. Which emails exist in both?

LIST A (MAILCHIMP)
[email protected] [email protected] [email protected] [email protected] [email protected]
INTERSECTION
[email protected] [email protected]

List B had bob, eve, frank, and grace. Two overlaps. Fast.

Merging inventory SKUs from two warehouses

Both locations sent product lists. You need one clean list — no repeats.

INPUT (BOTH LISTS)
A: SKU-1001, SKU-1002, SKU-1003, SKU-1004 B: SKU-1003, SKU-1004, SKU-1005, SKU-1006
UNION
SKU-1001 SKU-1002 SKU-1003 SKU-1004 SKU-1005 SKU-1006

Catching missing servers after a migration

Your team migrated 150 servers. The new environment reports 143 hostnames. Seven are missing — but which seven? Scrolling side by side would take ages. So you paste both lists and hit A \ B.

LIST A (EXPECTED)
web-01 web-02 db-primary db-replica cache-01 cache-02 worker-01
A \ B RESULT
db-replica cache-02 worker-01

Three missing. And now you know exactly where to look instead of re-checking all 150.

Who Uses This

👨‍💻 Developers

Comparing dependency lists between package.json files or diffing env vars across staging and production.

🔎 QA Engineers

Matching test case IDs against executed tests to catch skipped coverage before a release ships.

📨 Marketers

Merging email lists from different campaign platforms and stripping out duplicates before a send.

📊 Data Analysts

Cross-referencing column values from two datasets without writing SQL joins or pandas merge code.

Common Mistakes

Pasting comma-separated values on one line

✔️ Fix: “apple, banana, cherry” on a single line counts as one entry. Split them into separate lines first — one item per line, or the comparison matches nothing.

Forgetting about case sensitivity

✔️ Fix: “Admin” and “admin” will not match in case-sensitive mode. But if your intersection looks suspiciously small, toggle case-insensitive and run it again. Annoying when you don’t catch it.

Mixing up A \ B with Symmetric Difference

✔️ Fix: A \ B only returns items in List A missing from List B. Symmetric Difference gives you non-shared items from both sides. Not the same thing. Pick the wrong one and you miss half your results.

Technical Details

Frequently Asked Questions

How do I compare two lists without Excel?

Paste one list in each box and pick an operation — intersection, difference, union, whatever you need. Results show up in under a second. No formulas, no conditional formatting, no VLOOKUP headaches. It is genuinely faster than opening a spreadsheet for one-off comparisons.

What is the difference between union and intersection?

Union gives you every unique item from both lists combined — basically “give me everything, no repeats.” Intersection gives you only items that appear in both. So if List A has 50 items and List B has 40, the union might be 70 while the intersection could be 20.

Can I compare more than two lists at once?

Not in one pass. The tool handles two lists at a time. But you can chain it — run the first comparison, copy the result, paste it back into List A, and compare against the third list. One extra step. Works fine.

How do I find items in one list but not the other?

Use “A \ B” to get items in List A that are missing from List B. For the reverse, hit “B \ A.” And if you want all non-shared items from both sides in one shot, Symmetric Difference handles that.

Does this tool store or upload my data?

No. The whole comparison runs in your browser with JavaScript. Your lists never leave your device — nothing goes to a server, nothing saved in cookies or local storage. Close the tab and it is all gone.

Share: