Paste a list to delete repeated lines while keeping the first occurrence. Everything runs in your browser.
Your text never leaves your device — all processing happens locally.
This tool removes duplicate lines from your text while keeping the first occurrence, and it can match case-insensitively, ignore surrounding whitespace, and sort the unique lines, all while showing how many were removed.
The tool reads your text line by line and keeps the first time each line appears, dropping any later repeats. The original order of the surviving lines is preserved, and it shows how many duplicate lines were removed.
Case-insensitive treats lines like 'Apple' and 'apple' as the same line when matching. Trim-whitespace ignores leading and trailing spaces when comparing, so ' apple' and 'apple' are also seen as duplicates.
Yes. Turn on the also-sort option and the remaining unique lines are arranged in alphabetical order after duplicates are removed. Leave it off to keep the lines in their original order with the first occurrence preserved.