Compare matching keys without rewriting your source text
Paste one item per line into each list. A minus B finds A keys absent from B in set mode, or excess copies in multiset mode. B minus A reverses the comparison. Common uses the smaller copy count; union uses the greater count; symmetric difference uses the absolute count difference. Multiset union is not concatenation.
For A = apple, pear, pear and B = pear, banana: set common is one pear and set A minus B is one apple. Multiset common is one pear; multiset A minus B is apple and one pear. Multiset union contains one apple, two pears and one banana. Counts shown in the metrics follow the selected duplicate rule.
Comparison can trim edges, lowercase Unicode text and normalize to NFC. Those options change keys only, not output spelling or whitespace. The first original line for each key is retained, searching A before B even when B has excess copies. Source-line numbers in the report refer to the original input. NFC does not remove accents, translate text or perform fuzzy matching. Lowercase is JavaScript Unicode lowercase, not a locale-specific identity or full case-folding rule.
Output follows first appearance in A, then new B keys, unless key sorting is selected. Sorting uses JavaScript string code-unit order, not natural-number or locale collation. A final newline terminates the last line without adding another item; genuine blank lines can be included or ignored. Download output contains a final LF when it contains any items, including an empty-line item. The table previews 200 selected keys, but output, CSV and JSON are complete.
List comparison FAQ
How is this different from removing duplicate lines?
Duplicate removal examines one list. This tool compares two lists and exposes differences, shared keys, per-list counts and source lines. In set mode each key counts once. In multiset mode repeated items affect the arithmetic.
Why did a matched item retain spaces or a different case?
Trimming and lowercase affect comparison keys only. Output uses the first original line for a key, looking through A before B. Inspect the original representative and source lines instead of assuming the result has been cleaned or reformatted.
Are empty lines and final newlines meaningful?
Blank-line handling is explicit. Ignore skips empty and whitespace-only lines, regardless of trimming. Include keeps them as items. Empty input has no items. One final newline only terminates a line; two final newlines include an additional blank line. Comparison trimming may merge whitespace-only lines into one empty key.
Can I compare CSV records or verify email identities?
Not with CSV semantics. Quoting, embedded newlines and delimiters are not parsed; every line is an item. Matching text does not verify identity, deliverability or validity. Case, accent and whitespace changes can be meaningful in identifiers. Use only comparison options appropriate to your data.
What limits, exports and privacy apply?
Each input allows at most 1,000,000 UTF-16 code units and 10,000 lines, with no null characters. The output is plain LF-delimited text; CSV contains every comparison key with counts and source lines, while JSON also includes options and complete output. Formula-like CSV cells are protected, so a spreadsheet may show a leading apostrophe. Inputs are not uploaded or saved by this tool; normal assets and visit statistics still occur. Keep an original copy.