Skip to content
ToolsOnDuty
Text Tools

Text Sorter

Sort lines alphabetically, by length or numerically, or reverse their order.

Free foreverRuns in your browserNo sign-up

About the Text Sorter

This text sorter arranges lines in the order you choose: alphabetically, by length, numerically or simply reversed.

Alphabetical sorting can ignore case so that uppercase and lowercase words interleave naturally, and numeric sorting reads the leading number on each line.

It is perfect for tidying lists, ordering names, sorting data columns and reversing the order of any set of lines.

Key features

  • Sort A to Z or Z to A
  • Sort by line length or by leading number
  • Reverse the current line order
  • Optional case-insensitive sorting

How to use

  1. 1Paste your lines into the box.
  2. 2Pick a sort mode and toggle case sensitivity.
  3. 3Click Sort lines and copy the result.

Frequently asked questions

How does numeric sorting handle non-numbers?
Lines that do not start with a number are treated as having no value and are placed after the numeric lines.
What is the difference between reverse and Z to A?
Reverse simply flips the current order without sorting. Z to A sorts alphabetically in descending order.
Is my text uploaded anywhere?
No. Sorting happens entirely in your browser, so your text never leaves your device.