List Difference Tool

Keep lines from list A that have no exact match in list B, with optional comparison-only whitespace trimming.

Processing stays in this browser. Each input is limited to 100,000 characters.

Computes A minus B. Matching is case-sensitive. Duplicate retained lines from A remain in order. An empty B is allowed.

Find entries present only in the first list

Keep lines from list A that have no exact match in list B, with optional comparison-only whitespace trimming. Paste source entries into List A and excluded entries into List B (excluded entries), choose whether to trim surrounding whitespace for comparison, then choose Process text. Results can be copied or downloaded. The tool retains the input so you can compare before replacing any source. Changing a setting or input clears the previous result and download.

Work through the example

Load the example: A contains apple, pear, apple and plum; B contains pear. The result is apple, apple and plum. Duplicate apple entries are kept because the task is membership filtering, not deduplication. The example action replaces input and settings. Keep any important original separately before using it.

Matching and transformation rules

Computes A minus B. Matching is case-sensitive. Duplicate retained lines from A remain in order. An empty B is allowed. Trim for comparison removes surrounding whitespace only from matching keys, not from retained output text. Empty lines are valid entries and can match empty lines in B. A final line terminator is not an extra blank entry. Results are joined with LF and no final terminator; original line-ending bytes are not preserved. A minus B differs from B minus A and from a symmetric difference.

The output contains retained entries from A, one per LF-separated line. No final terminator is added, and retained text is not trimmed even when comparison-only trimming is enabled. If the only retained entry is an empty line, the count can be one while the output appears empty. The zero-byte result has no download link; inspect the count to distinguish this case from no retained entries.

Limits and troubleshooting

Each text input supports 100,000 UTF-16 code units. List A must not be empty. A zero-result list is allowed when all entries are excluded; List B may be empty. No disk file is modified and a page reload discards the current state.

Use Remove Duplicate Lines after filtering if retained repetitions should become one entry. Use Text Line Filter when the exclusion criterion is a phrase rather than a complete entry in B.