Remove duplicate lines

You can remove duplicate lines here in seconds: paste your text, delete the duplicates and copy the result. Everything runs in your browser and nothing is uploaded.

Source: MDN Web Docs – String.prototype.localeCompare / Intl.Collator (Sortierreihenfolge, numerisch). Updated: .

one entry per line, up to 50,000 lines
off: Apple and apple count as the same
and remove them
My Toolbox

Result

Result
Apple Pear Cherry
Summary
7 lines → 3 lines · 3 removed · of which 1 empty lines · 3 different lines
Most frequent duplicates
LineCount
Apple3
Pear2

How it is calculated

The tool keeps every line only once: for duplicates the first occurrence stays, and the order of the other lines does not change.

How lines are compared

By default “Apple” and “apple” count as the same and spaces at the start and end of a line are ignored. With the case option, letter case matters too. Accents and umlauts are recognised in both forms (ä as one character or as a plus a diaeresis).

More options

All processing happens on your device.

Frequently asked questions

How do I remove duplicate lines from text?

Paste the text into the box. The result shows each line only once, and the first occurrence is kept.

How do I find only the duplicates?

Choose “Only lines that appear more than once”. The table also shows how often each line appears.

Is my data uploaded?

No. The lines are processed in your browser and not stored.

Sources and legal basis

As of: · Editorial policy

Related tools