RelicRELIC

Remove Duplicate Lines

Delete repeated lines and keep only the first of each.

Runs entirely in your browser. Nothing you type is uploaded.
Input
Result
Result appears here…

What it does

Remove repeated lines and keep only the first of each, preserving the original order. It all runs in your browser, so the text you paste is never uploaded anywhere.

For the text you keep reworking

If you are cleaning up text you copied from somewhere, you will probably want the original again later. Relic keeps an encrypted, searchable history of everything you copy, on every device, so the version you started from is always one search away.

Frequently asked questions

How do I remove duplicate lines?

Paste your list or block of text and the tool keeps the first time each line appears while dropping every later repeat. The order of what remains is preserved, so it does not shuffle your list. Copy the deduplicated result in one click.

Does it keep the first copy or the last copy of a line?

It keeps the first occurrence and removes the ones after it. Because the surviving lines stay in their original positions, a sorted or deliberately ordered list keeps its shape.

Is the duplicate matching case-sensitive?

Yes. Lines have to match exactly to count as duplicates, so "Apple" and "apple" are treated as two different lines. Trailing spaces count too, so if near-identical lines are not being removed, check for stray whitespace (our whitespace remover can tidy that up first).

Will it change the order of my lines?

No. Unlike sorting, this preserves the original order and only strips the repeats. If you also want the result alphabetized, run it through our alphabetize list tool afterward.

Is my text uploaded to remove duplicates?

No. Everything runs in your browser, so your list never leaves your device or reaches a server.

More free tools
Number Lines
number lines
Alphabetize List
alphabetize list
Reverse Text
reverse text
Line Counter
line counter
Remove Line Breaks
remove line breaks
Mirror Text
mirror text
All tools