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.
نتائج المقارنة
الأسئلة الشائعة حول الآلات الحاسبة عبر الإنترنت
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.
Find Gaps and Overlaps in Two Lists
Use this tool to compare two lists and see exactly which items appear in only one, only the other, or both. The comparison treats each list as a set, so item order does not matter—only membership. The result gives you four clear views: items unique to List A, items unique to List B, items common to both, and the combined union of all values.
This is the right tool when you need to reconcile data rather than read a side-by-side diff. It is useful for validating contact exports, checking keyword coverage, auditing inventory SKUs, or confirming that two systems agree on a subset of records.
How the Comparison Works
Paste your data into two panels or import files. Supported formats are plain text, CSV, and JSON. Each line or record is treated as one item. Once submitted, the tool runs set operations and displays the results in four categories:
- A only – Items that exist in the first list but not the second
- B only – Items that exist in the second list but not the first
- Common (A ∩ B) – Items that appear in both lists
- Union (A ∪ B) – Every unique item across both lists
Duplicates within a single list count as one member of the set. If you need to audit repeated entries themselves, a line-by-line diff is the better fit. The output can be sorted as a display choice after the comparison is complete.
Inputs and Output
What you provide
You supply two lists. Each list can be added by pasting text or by importing a file in one of the following formats:
- TXT (plain text, one item per line)
- CSV (comma-separated values)
- JSON (list of items)
The tool handles the import and normalizes the structure before running the set operations.
What you receive
The result is a downloadable file containing the four views: A-only, B-only, common, and union. The original files you uploaded remain unchanged. Keep a copy of your source lists until you have verified the output in the application that will consume it.
Check the Result Before Moving It Downstream
When you finish the comparison, open the A-only, B-only, common, and union sections in the tool that will actually use the data—your CRM, spreadsheet, or ticketing system—and spot-check the parts that matter for your audit. The original file stays untouched if you need to re-run with different options or a corrected input. A quick review at this stage saves the cost of a re-upload or a wrong reconciliation downstream.
Real Use Cases
This tool is built for people who need a fast, set-based reconciliation without a desktop diff suite. Common scenarios:
- Reconcile marketing or CRM contact lists before a campaign send
- Compare keyword or URL inventories across two reporting tools
- QA check of test case or feature-flag IDs between two environments
- Inventory SKU reconciliation between a supplier export and your own stock count
Because the comparison is set-based, it answers the question “which values are missing, extra, or shared?” rather than “how did this line change?” If your goal is to track row-level edits in a document, a line diff tool is the better fit.
Data Handling and Privacy
FileCompare.org runs supported comparisons locally in your browser. Your files and pasted text stay on your device; nothing is uploaded, stored, or logged on our servers for browser-side formats. That matters when you are comparing contracts, API keys, customer data, or unreleased code. You get immediate set-based results without sending the content over a network connection.