Remove duplicate lines

Line-by-line exact match; trim whitespace elsewhere if you need fuzzy dedupe.

Paste lists, logs, or exports to collapse repeated rows. The first copy of each line stays; later duplicates disappear—handy before sorting or diffing.

Text
Result

How it works

Lines are split on newline characters; exact string equality decides duplicates.

Leading and trailing spaces matter: two lines with different spaces are not duplicates.

Trimming

Trim first in a text editor if you need to ignore surrounding spaces.

Privacy

Local only.

Common questions

Empty lines?
Multiple empty lines collapse to one empty line after the first.
Case insensitive?
Not here. Compare exact text.
Sort?
Use the text sorter tool if you need sorted unique lines.
Huge files?
Paste reasonable sizes for best performance.