Sort lines and remove duplicates
Paste a list (names, emails, SKUs, keywords…) with one item per line. Sort it alphabetically, remove repeated and blank lines, reverse it or shuffle it.
🔒 Everything runs on your device
How to use it
- Paste the list, one item per line.
- Pick the order: A-Z, Z-A, by length, reverse or random shuffle.
- Tick what to clean up: duplicates, blank lines and extra spaces.
- Copy the result. The summary shows how many lines were removed.
Example
Version numbers in natural order
The lines “v10”, “v2”, “v1”, “v2” sorted A to Z with natural order and without duplicates become “v1”, “v2”, “v10”. Without natural order, “v10” would come before “v2”, as in a plain text sort.
How it works
Alphabetical order follows the page language rules (Intl.Collator): accented letters sort next to their plain letter.
With “Natural order”, numbers inside the text are compared by value: “item 2” comes before “item 10”.
Removing duplicates keeps the first occurrence of each line, in its original position before sorting.
Shuffling uses the Fisher-Yates algorithm with the browser’s cryptographic random numbers, so every ordering is equally likely.
Limitations
- Each line is one item. If your list is separated by commas or semicolons, put one item per line first.
- Random shuffle is fine for informal draws, not for prize draws that legally require a verifiable procedure.
FAQ
How do I remove duplicates without changing the order?
Choose “Keep order” and leave “Remove duplicate lines” ticked. Repeated lines disappear and the rest stay where they were.
Are duplicates case-sensitive?
By default yes: “London” and “london” are different. Tick “Ignore case” to treat them as the same; the first one found is kept.
Is there a line limit?
There is no fixed limit; lists of tens of thousands of lines are processed instantly. The text never leaves your browser.