Free online text sorter. Sort lines of text alphabetically, reverse alphabetically, by length, or randomly. Supports case-sensitive and case-insensitive sorting.
Sorting lines of text alphabetically, by length, or randomly is a frequent need for developers processing lists, writers organising content, and anyone working with tabular data outside a spreadsheet.
This tool sorts any list of lines in multiple ways: alphabetical (A-Z and Z-A), by line length, and random shuffle. It handles case-insensitive sorting so "Apple" and "apple" are treated as equivalent when sorting alphabetically.
By default, sorting is case-insensitive so "Apple" and "apple" sort together. Most use cases benefit from case-insensitive sorting. If you need case-sensitive sorting where uppercase letters come before lowercase, look for the case-sensitive option.
Lines starting with numbers sort lexicographically by default (1, 10, 2, 20) rather than numerically (1, 2, 10, 20). For correct numerical sorting, you would need to pad numbers with leading zeros before sorting.