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

  1. Paste your list into the input box, one item per line.
  2. Choose how to sort: alphabetical, numeric, by length, reverse or shuffle.
  3. Turn on any cleanup option like remove duplicates or blank lines.
  4. 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