Text Sorter
Sort lines alphabetically, by length or numerically, or reverse their order.
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
- 1Paste your lines into the box.
- 2Pick a sort mode and toggle case sensitivity.
- 3Click Sort lines and copy the result.
Examples
banana, apple, cherryapple, banana, cherryLines are ordered alphabetically from A to Z.
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.
Continue your workflow
Open a related tool to prepare your files or refine the finished result.
- Text ToolsDuplicate Line Remover
Remove repeated lines, keeping the first or last, with optional case and space matching.
Open tool - Text ToolsText Splitter
Split text on a comma, space, custom delimiter or more into one item per line.
Open tool - Text ToolsLine Counter
Count total, non-empty, blank and unique lines, and find the longest line.
Open tool
