gg
HomeText › Dedupe Lines
Text

Dedupe Lines

Remove duplicate lines while keeping the first occurrence of each in its original order. It's a stable, order-preserving unique filter. Perfect for cleaning email lists and merged files.

Try it now

Worked example

a b c

Frequently asked

Is order preserved?

Yes — the first time a line appears is kept, later copies are dropped.

Does whitespace matter?

Yes, lines must match exactly (including spaces) to count as duplicates.

Related Text tools