Text Line Sorter
Sort lines of text alphabetically, numerically, by length, or shuffle randomly. Reverse order, remove duplicates, strip blank lines — all in one tool.
Frequently asked
questions
Alphabetical (lexicographic) sort compares characters left to right: "10" comes before "9" because "1" < "9". Numerical sort converts lines to numbers first: 9 comes before 10. Use numerical sort for lists of numbers.
Yes — paste names one per line and choose A→Z. For last-name sorting, make sure names are "Last, First" format so the last name sorts first. The case-insensitive option ensures "alice" and "Alice" sort together.