Free tool
Duplicate line remover and sorter
Remove duplicate lines and sort a list A to Z, Z to A, by length or by number. It runs in your browser.
How to remove duplicate lines
Paste a list with one item on each line. The tool keeps one copy of every line and shows the result straight away. Use it on lists from spreadsheets, email exports or AI output, where the same item often appears more than once.
Example
Input, five lines:
pears Apples apples pears
With the default options (case-sensitive, trim spaces, ignore blank lines, keep the first copy), the output is three lines: pears, Apples, apples. One repeated line and one blank line are dropped. Turn off case-sensitive and apples also goes, leaving two lines.
Questions
Does it keep the original order?
Yes, unless you pick a sort. With sort set to none, lines stay in the order they first appear, or in the order of their last copy if you keep the last occurrence.
How does the numeric sort treat words?
It reads the number at the start of each line. Lines that do not start with a number go after the numbers, in their original order.
What does keep last do?
When a line repeats, the tool keeps the final copy and drops the earlier ones, so the survivor sits where the last copy was.
Is my list uploaded?
No. The work happens in your browser tab and nothing is sent anywhere.
Why did a line I expected to match survive?
Check case and spacing. With case-sensitive on, Apples and apples differ. With trim off, a trailing space makes two lines different.
Related: the word and character counter. Cleaning a list of links? Read how to check links before publishing. Also see how to compare AI drafts with a rubric.
Your text stays in this tab. Refreshing the page clears it.
Explore the other free tools ↗