Compare Two Lists

Two lists are usually compared as sets rather than as text, so this page reports what is only in the first, only in the second, in both, and the union — a reconciliation you can count rather than a wall of highlights. Item order plays no part, which is precisely the difference between this and a line diff.

0 List A
0 List B
0 Common
0 A Only
0 B Only
0 Union
List A
Lines: 0
List B
Lines: 0
Advanced options

Comparison Results

A Only
A ∩ B (Common)
B Only
A ∪ B (Union)
Files never leave your device. Privacy & limits
Embed tool Add this tool to your website Get embed code

Add this comparison tool to a related page with a visible FileCompare source link.

Frequently Asked Questions About Online Calculators

Does the order of the items matter?

No. The comparison works on membership, so the same two lists give the same result in any order. Sorting the output is a display choice you can change afterwards.

What happens to duplicates inside one list?

They count as a single member of the set. When duplicate entries are themselves what you are auditing, use a line diff, where every row is compared on its own.

Will my original file be changed?

The result is downloaded as a separate file. Keep your original until you have checked the A-only, B-only, common and union.

What should I check before using the result?

Open the A-only, B-only, common and union in the application that consumes it and spot-check the parts that matter to you; the original file stays untouched if you need to re-run with different options.

Is Compare Two Lists free?

Yes. This tool is free with no trial limit, subscription, or watermark. Use it for personal and commercial projects without an account.

Are my files uploaded to your servers?

Comparison runs locally in your browser for supported formats. Your files and text stay on your device and are not stored on FileCompare servers.