Text Sorter
Sort lines of text alphabetically (A-Z or Z-A), by length, or reverse them. Optional case sensitivity and removing blank lines.
How to use
Paste your lines, pick a sort order and options, and the sorted result appears instantly below.
FAQ
How is alphabetical order decided?
The selected locale, numeric option, case sensitivity, and case-first rule are passed explicitly to Intl.Collator for repeatable sorting.
What does natural sort do?
Natural sort compares embedded numbers numerically, so item2 sorts before item10.
How is line length measured?
Choose grapheme clusters for visible characters, where a family emoji counts as one, or UTF-16 code units for JavaScript-style length.
Last updated: