Skip to content

Remove Duplicate Lines

Paste a list to instantly drop repeated lines, keeping the first occurrence of each and preserving order.

Text

Options

Processed locally. Your text never leaves your browser.

Result

Paste some text to remove duplicate lines.

Common questions

Are blank lines treated as duplicates of each other?

Yes — a blank line is compared just like any other line, so several blank lines scattered through your list collapse down to one, the same as any repeated word or phrase would.

"Ignore leading/trailing whitespace when comparing" — does that also trim my output?

No — it only changes what counts as a duplicate. Turning it on means "apple" and " apple " are treated as the same line, but whichever one is kept keeps its original spacing exactly as you typed it. Nothing in the output is trimmed or rewritten.