Free Line Sorter & Duplicate Remover
Paste a list to sort its lines alphabetically or naturally, remove duplicates and empty lines, and copy the result.
4 lines in · 3 out · 1 duplicates removed
How to use / FAQ
What does natural sort do differently?
It compares embedded numbers by value instead of character by character. Alphabetical sort puts file10 before file2 (because "1" comes before "2"); natural sort gives file1, file2, file10 — usually what you want for filenames, versions, and numbered items.
Which duplicate is kept?
The first occurrence, in the order the lines appear in your input. Everything after it that matches is removed. With "Ignore case" on, Apple, apple, and APPLE count as the same line and only the first spelling survives.
Why didn't my duplicate lines get removed?
They probably differ invisibly — trailing spaces or different capitalization are the usual culprits. Switch on "Trim whitespace" and "Ignore case" and lines that look identical will be treated as identical.
In what order are the options applied?
Trim first, then empty-line removal, then duplicate removal, then sorting. That order means a padded copy like " apple " collapses into "apple" before duplicates are checked, and sorting always happens on the final, cleaned list.
Is my list uploaded anywhere?
No. Splitting, sorting, and deduplicating all run in your browser — nothing you paste leaves your device, so it's fine for lists that contain emails, customer names, or internal URLs.