Compare Two Lists
Paste one item per line in each list. Find what both lists contain and what belongs only to one side, with separate results you can copy or download.
Both lists stay in this tab, without upload or browser storage.
Compare membership, rather than row positions
This tool compares the distinct entries in two lists. Repeating an item inside one input does not make it appear several times in the result. List A containing Alpha, Beta, Alpha and Delta and list B containing Beta, Gamma and Delta produce Beta and Delta in both, Alpha only in A, and Gamma only in B. Moving an item to another row does not make it different.
Shared entries and A-only entries keep their first original text and order from A. B-only entries use the first originals and order from B. That choice matters when you ignore case or surrounding whitespace: if A contains “ Alpha ” and B contains “alpha”, the shared result uses the original A line when those matching options are enabled. Retained contents are not rewritten.
This is not a side-by-side document diff, a CSV join or a URL canonicalizer. It does not report changed characters, interpret columns, sort values or decide whether differently written names refer to the same person. For addresses and identifiers, begin with exact matching and review the output before choosing more permissive rules.
Choose the rules and export one result group
Matching is case-sensitive by default and keeps leading and trailing spaces significant. Ignore case uses JavaScript lowercasing, not full linguistic case folding or Unicode normalization. For example, Straße and STRASSE may remain different. The whitespace option trims only comparison keys, not the first original lines kept in the result. Internal spaces and punctuation remain significant.
Empty and whitespace-only lines are ignored initially. You can turn this off to compare blank entries too. Open Input counts to see the original rows, unique entries, repeated rows removed and blank rows removed for each side. For each input, the unique count plus the two removal counts equals the input count. The number of shared entries plus A-only equals unique A; shared plus B-only equals unique B.
Each input accepts up to 500,000 UTF-16 units and 50,000 logical lines, with oversized input rejected without truncation. CRLF, LF, CR, NEXT LINE and Unicode line/paragraph separators are recognized. A final newline closes the last input row. Results use LF and end with a newline when at least one row is exported, including an empty row; an empty group creates a zero-byte TXT. One input can be empty, which leaves all unique entries on the other side.
Comparison, clipboard actions and TXT creation run in this browser tab. The lists are not uploaded, saved in browser storage or put in page addresses. Ordinary website resources still use the network. Changing an input or option clears old results; choosing another group changes what the copy and download buttons export. Save what you need before closing the tab.
How to use it
- Paste list A and list B — Use one item per line. You can fill the example without providing your own data.
- Choose rules and compare — Leave exact matching or adjust case, surrounding whitespace and blank-line rules. Press Compare lists.
- Choose and save a group — Select In both, Only in A or Only in B. Review the first-original text and counts, then copy or download that group.
Frequently asked questions
What happens to duplicates within one list?
Only the first entry for each comparison key participates. Later repeats are counted separately and do not multiply shared or exclusive results. Open Input counts to inspect this for each side.
Which spelling appears in a shared result?
The first original line from A. Case and whitespace settings change comparison keys, while shared output preserves A’s text and order. The first B original is used only for entries exclusive to B.
Can one of the lists be empty?
Yes. The shared group is then empty and every unique entry in the populated list belongs only to that side. If both fields are empty, the interface asks you to provide at least one list.
Is this a text diff or a CSV comparison?
It compares membership of whole text lines. It does not align rows, highlight changed characters, parse CSV columns or normalize URLs. Use a dedicated document or table workflow when those distinctions matter.