Text Sorter
What is Text Sorter
A text sorter reorders the lines of any text the way you need them: alphabetically from A to Z or Z to A, by the number in each line, by length, in reverse, or shuffled at random. It also tidies lists by removing duplicate and blank lines, so a messy paste becomes a clean, ordered list in one step.
How to use
- Paste your list into the input box, one item per line.
- Choose how to sort: alphabetical, numeric, by length, reverse or shuffle.
- Turn on any cleanup option like remove duplicates or blank lines.
- Copy the sorted result from the output box.
When to use it
Got a jumbled list of names, emails or CSV values to alphabetize? Paste it, pick A to Z, and get a clean sorted list ready to drop back into a spreadsheet or your code. Switch on "Remove duplicate lines" to dedupe a 500-row mailing list in the same pass.
Frequently asked questions
How do I sort a list alphabetically?
Paste your list with one item per line, choose the A to Z option, and the sorted result appears instantly. Pick Z to A to reverse the order.
Can it sort numbers correctly?
Yes. Numeric mode reads the first number in each line and orders by value, so "item 2" comes before "item 10" instead of after it. Lines without a number are placed at the end.
Does it remove duplicate lines?
Yes. Turn on "Remove duplicate lines" and repeated lines are dropped, keeping the first of each. It works alongside any sort mode and the case-sensitive option.
Is my text uploaded anywhere?
No. All sorting runs in your browser. Your text never leaves your device, so it is safe to sort private or sensitive lists.
Can I share this tool with my inputs pre-filled?
Yes. The URL updates automatically as you type. Copy it from the address bar or use the Share button, and anyone who opens the link sees your exact inputs ready to go.
Related tools
Atbash Cipher Encoder and Decoder
Encode and decode the Atbash cipher online. Atbash mirrors the alphabet and is its own inverse, so one click scrambles and unscrambles. Free and private.
Convert Binary to Text
Decode binary code back to readable text instantly. Tolerant of missing zeros and unspaced bit streams. Free online binary to text converter.
Caesar Cipher Decoder
Decode Caesar cipher text online. Set the shift or try all 25 at once to crack an unknown key. Free, instant, and private in your browser.