Delete duplicate lines while preserving order, with optional sorting.
This tool removes repeated lines from a list while keeping the order intact, so the first occurrence of each line stays exactly where it was. It is built for cleaning exports, deduplicating ID lists, and trimming pasted log data.
Processing is local to your browser. Paste account numbers, emails, or internal identifiers and they will never leave your device.
Remove exact duplicates
Input
apple
banana
apple
cherry
bananaOutput
apple
banana
cherryOrder is preserved and the first copy of each line is the one that survives.
Ignore letter case
Input
Red
red
BLUE
blueOutput
Red
BLUEWith ignore case enabled, red counts as a repeat of Red, so only the first spelling stays.
Deduplicate and sort
Input
pear
apple
pear
appleOutput
apple
pearSorting is optional and runs after duplicates are removed.
The first occurrence is kept and later repeats are dropped, unless you enable sorting, which orders the unique lines afterwards.
Not by default: trailing spaces make lines different. Turn on trim to ignore leading and trailing whitespace while comparing.
No. Without the sort option, the original order of first appearances is preserved exactly.
No. Deduplication runs in your browser and the list is never transmitted.
The preview updates live — apply the result to edit it further.