Text tools

Remove Duplicate Lines

Paste a list and get it back with the repeats gone — the first time each line appears is kept, and the order stays exactly as you had it.

2 duplicates removed
Unique lines
apple banana cherry date

How it works

It reads your text line by line and keeps the first occurrence of each unique line, dropping any later repeats. Because it works top to bottom, the surviving lines stay in the order you pasted them.

Turn on 'ignore case' to treat 'Apple' and 'apple' as the same entry — useful for email lists or tags where capitalization shouldn't matter. Leave it off to keep those as separate lines.

A running count tells you how many duplicates were removed, and the whole thing runs in your browser so your list never leaves your device.

Frequently asked questions

Does it keep the original order?

It does. Unlike a sort-and-dedupe, this keeps the first appearance of each line exactly where it was, so an ordered list stays ordered.

What does 'ignore case' change?

With it on, lines that differ only in capitalization count as duplicates, so only the first is kept. With it off, 'USA' and 'usa' are treated as two distinct lines.

Does it remove blank lines?

Repeated blank lines collapse to a single blank the same way any duplicate would. The first empty line survives; the rest are dropped along with other repeats.