Text Sorter: Sort Lines A–Z and Remove Duplicates
Sort a list alphabetically, by length or randomly, and remove duplicate or empty lines in one step. Perfect for names, keywords and email lists.
Open the free Text Sorter & Duplicate Line Remover →What is the Text Sorter & Duplicate Line Remover?
Sort lines A–Z, by length or randomly, and remove duplicate or empty lines. It's completely free, needs no sign-up and works on any phone or computer.

Why it's helpful
- A–Z, Z–A, by length or random
- Removes duplicates and blank lines
- Works with long lists instantly
Who it's for
Marketers, teachers, office workers and developers.
How to use it
- Paste a list, one item per line.
- Choose a sort order and options. The result updates live.
💻 Open source: this tool is free and open source (MIT License). View the code on GitHub, download it and run it offline.
The bigger picture: Text
Writing is everywhere: posts, emails, essays and product pages. Simple text tools help you hit length limits, clean up content and write more clearly.
What's changing: With AI drafting more text, editing tools that check clarity, length and tone are becoming the final quality step.
Frequently asked questions
Does numeric sort handle 2 vs 10?
Yes. A–Z also uses natural order, so item2 comes before item10.
Use the Text Sorter & Duplicate Line Remover free →
No sign-up · Runs in your browser
Related guides



