About the Remove Duplicate Lines & Sort
Cleaning up a list of emails, keywords, product codes or names? Paste it here to remove duplicate lines instantly. You choose whether “Apple” and “apple” count as the same line, whether stray spaces are trimmed, and whether blank lines are dropped.
Then sort the result alphabetically, in reverse, by line length or in natural order — so “item 2” comes before “item 10” — or shuffle it randomly. Live counters show how many lines you started with, how many are left and how many duplicates were removed.
How to use the Remove Duplicate Lines & Sort
- Paste your list into “Your text”, one item per line.
- Keep “Remove duplicates” ticked, and choose “Case-sensitive”, “Trim whitespace” and “Remove empty lines” as needed.
- Pick a sort order such as “Sort A → Z” or “Natural (1, 2, 10)”, or “Shuffle”.
- Check the line counts, then click “Copy” to copy the result.
Frequently asked questions
Which copy of a duplicate line is kept?
The first occurrence is kept and later copies are removed, so the original order is preserved unless you also choose a sort order.
What is natural sort?
Natural sort orders numbers inside text by their value instead of digit by digit, so “file 2” comes before “file 10”. A plain A → Z sort would put “file 10” first.
Are “Apple” and “apple” duplicates?
By default, yes — lines are compared ignoring case. Tick “Case-sensitive” to keep lines that differ only in capitalization.
Is there a limit on how many lines I can paste?
No fixed limit. Lists with tens of thousands of lines are processed instantly in your browser, and nothing is uploaded.