Sort lines alphabetically or by length, remove duplicates, and strip blank lines, instantly in your browser.
Updated
/ 5 - Be the first to rate this tool Thanks for rating!
Verification failed - please try again.
Quick check
Please verify you're not a robot to submit your rating.
Give feedback
Tell us what you think about Sort and de-duplicate lines online.
- Runs entirely in your browser — your text is never sent to a server
- Sort alphabetically or by length, dedupe, and strip blank lines
- Free, no account required
How it works
-
1
Paste your lines into the Input box.
-
2
Choose how to sort and in which direction.
-
3
Turn on duplicate or blank-line removal if needed.
-
4
Press Run and copy the output.
About the Sort & Dedupe Lines
Lists pasted from spreadsheets, logs or emails are rarely in order and often contain repeats. This tool sorts lines alphabetically or by length, in either direction, and can remove duplicate and blank lines in the same pass. Alphabetical sorting follows your browser's language rules, so accented letters sit next to their plain forms instead of after Z.
What you can do
- Sort lines alphabetically, by length, or keep their original order.
- Choose ascending or descending order.
- Remove duplicate lines, keeping the first occurrence.
- Remove blank lines.
- Copy the result in one click.
When it works best
- Deduplicating a list of email addresses, tags or SKUs before an import.
- Alphabetising a word list, glossary or list of dependencies.
- Finding the longest entries in a list of names or URLs by sorting by length.
Things to know
- Sorting runs in your browser.
- Duplicates must match exactly; lines that differ in case or have a trailing space are kept, so clean them with the Whitespace Cleaner first.
- Numbers are sorted as text, so 10 comes before 9 in alphabetical order.
- For comma-separated data with columns, convert it with CSV ↔ JSON instead.
Frequently asked questions
Lines must match exactly, so differences in case or trailing spaces keep them apart.
Numbers are sorted as text.
The first occurrence.
Yes, ascending or descending.