How to Compare Lists Online: A Step-by-Step Example
Compare Two Lists ·
Follow the example below to check which IDs are missing from each list, then verify a duplicate count and export the result. You can paste the sample IDs to follow along or use the same steps with two CSV files.
The free list comparison tool accepts pasted text, TXT, CSV and TSV files. It runs on your device, requires no account, and keeps identifiers as text. Each list can contain up to 50,000 records and 5 MiB. An Excel workbook must first be copied or exported as CSV; XLSX is an output format here, not an input format.
Step 1. Choose the result you need
A missing product code and an extra occurrence of an existing code need different checks. Decide which result you need before removing duplicates or changing the input.
| Your question | Result to select | What it tells you |
|---|---|---|
| Which values in the first list are missing from the second? | Only A | Values present in A and absent from B |
| Which values occur only in the second list? | Only B | Values present in B and absent from A |
| Which values do the lists share? | In both | Values present at least once on each side |
| Does every value occur the same number of times? | Different counts | Values whose A and B occurrence counts differ, including one-sided values |
| Which IDs repeat in either list? | Repeated IDs | Any value occurring more than once on either side, including equal repeats |
These results compare membership and frequency, regardless of row order. They do not compare corresponding spreadsheet cells or highlight edited words. If your task is to check changes in prose, use a text-diff workflow. If you need to reconcile monetary amounts, counting rows alone cannot establish whether those amounts agree.
Step 2. Paste the sample lists and compare
Start with this fictional example. Paste the first block into List A and the second into List B, leaving Read as set to One item per line.
List A:
00123
00123
00456
123
List B:
00123
00456
00789
Keep Ignore case and Ignore outer whitespace off for an exact comparison, then select Compare lists. You should get four distinct values:
| Value | Count A | Count B | A minus B |
|---|---|---|---|
| 00123 | 2 | 1 | +1 |
| 00456 | 1 | 1 | 0 |
| 123 | 1 | 0 | +1 |
| 00789 | 0 | 1 | −1 |
Only A returns 123; Only B returns 00789. In both returns 00123 and 00456, even though the counts for 00123 differ. Different counts includes 00123, 123 and 00789. Repeated IDs includes only 00123 in this example.
Checking both directions matters. Looking only for missing A values would overlook the additional 00789 in B. Comparing total row counts is also insufficient: equal totals can conceal different values or different frequencies.
For a sample with surrounding CSV fields, load the shipment and receipt example. It replaces both inputs with fictional records and selects the ID columns. The duplicate-count walkthrough explains its 4-versus-2 and equal 2-versus-2 cases.
Step 3. Check the input and matching rules for your own files
Open a CSV or TSV file on each side, check its separator and header setting, and choose Compare column independently for A and B. The columns can have different names and positions: stock_code in one export can be compared with sku in another.
Only the selected field determines membership and counts. Other fields remain available through View rows. A matching ID does not mean its description, status or price agrees across the files. The CSV column guide shows how to check the mapping before interpreting a result.
Keep leading zeros and check case and spaces
The example treats 00123 and 123 as separate text identifiers. Open the original export directly when possible. If a spreadsheet has already removed zeros or rounded a long number and saved that change, an online comparison cannot reconstruct the lost characters.
Use Ignore case when ABC and abc should be the same key. Use Ignore outer whitespace when spaces around a value are irrelevant. Neither option provides fuzzy matching or removes internal spaces. Re-run the comparison after changing a rule, and check the displayed settings before downloading.
If values still look identical, inspect the exact-text matching guide. If you need to stay inside a workbook, use the existing guide to comparing two lists in Excel.
Step 4. Filter and download the report
Choose the filter first, then clear the result search unless you intend to export a narrower selection. Download includes every matching result across pagination, rather than only the visible rows.
- Copy values gives you the comparison keys.
- CSV report contains the grouped summary and source line references, rather than complete source tables.
- Excel contains the summary, associated source rows and matching rules. Source values are written as text cells to preserve identifiers.
- JSON includes the selected results and their source records as structured data.
For a review handoff, use Excel or JSON and keep the original rows with the result. Open one known discrepancy and check it against the source before sharing the report. A grouped count does not identify which individual repeated transaction belongs to which record on the other side.
Before sharing a report with original rows
Comparison inputs are processed in your browser; this tool does not upload the lists for matching. Hosting and optional usage measurement are separate from input processing, as explained in the privacy notice. Follow your organization’s rules for handling personal or confidential records, and remember that downloaded reports can contain the original fields you opened.
When you are ready, open the comparison inputs, paste a small known pair first, and confirm that the filter and matching rules answer your actual question.