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 القائمة A
0 القائمة B
0 مشترك
0 A فقط
0 B فقط
0 اتحاد
القائمة A
أسطر: 0
القائمة B
أسطر: 0
خيارات متقدمة

نتائج المقارنة

A فقط
A ∩ B (مشترك)
B فقط
A ∪ B (اتحاد)
الملفات لا تغادر جهازك. الخصوصية والحدود
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.

الأسئلة الشائعة حول الآلات الحاسبة عبر الإنترنت

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.

What happens if one list has duplicate entries?

Duplicates inside a single list count as one member of the set. If auditing repeated entries is the goal, a line diff is the better tool, because every row is compared on its own.

Will the original file be changed by the comparison?

The result is downloaded as a separate file. Your original upload or pasted text is untouched. Keep your original until you have checked the A-only, B-only, common, and union views in the application that will consume them.