List Intersection Tool

Find unique exact entries shared by two line-separated lists, keeping first-list order.

Keeps each exact shared entry once, in first-list order. Case and whitespace are significant.

Processing stays in this browser. Each input supports 100,000 UTF-16 code units and 10,000 entries.

List Intersection: work with two lists

Find unique exact entries shared by two line-separated lists, keeping first-list order. Paste one entry per line into List A and List B, then select Process lists. The source inputs remain available for inspection. Load example (replaces both lists) replaces both inputs, so preserve any source you need before using it.

Work through the example

The example returns apple followed by pear. The second apple is not repeated, and plum has no match in list B. Reordering list B does not reorder this result.

Matching and ordering

Intersection is a set-style membership operation. Entries must match exactly, including capitalization and surrounding spaces. There is no Unicode normalization or fuzzy matching. The earliest occurrence in list A supplies each output entry. An empty list on either side produces no shared entries.

Use this when finding IDs or names present in both exports. It does not join associated columns or establish that similarly spelled names represent the same person.

Empty lines and text preservation

An empty input contains zero entries. An explicit empty line is an entry; a final line terminator does not add another entry. For example, two line terminators contain two empty entries. No trimming or case conversion occurs. CRLF, CR and LF separate entries, but browser textareas can normalize line endings before processing. This is a line-based workflow, not a parser for CSV fields containing embedded newlines.

Inspect and save the output

The result is plain text with LF separators and no final terminator added. One retained empty entry and zero entries both appear as an empty text result; use the reported count to distinguish them. A zero-byte TXT download is still available.

Input is limited to 100,000 UTF-16 code units and 10,000 entries per side. Both completely empty inputs produce an error. Unpaired UTF-16 surrogates are rejected instead of changing them during UTF-8 export. Changing either input clears previous output and its download. Processing is local; a reload discards entered text. Review the result before using it to replace source data.

Use List Difference Tool for entries present in A but absent from B. Use List Union Tool when your task is combining unique entries rather than positional pairing.