HomeText ToolsLine Sorter

Line Sorter

Sort lines alphanumerically, reverse, shuffle, or add numbers instantly.

About this tool

The Line Sorter rearranges lines of text in seconds — alphabetically, in reverse, or randomly shuffled. It also offers line numbering for when you need to add ordered prefixes to a list. This covers the most common sorting needs without requiring a spreadsheet or scripting environment.

Sorting lists manually is one of the most repetitive tasks in writing and data work. Whether you're organizing a list of names, sorting a set of configuration keys, or randomizing a deck of quiz questions, this tool handles it instantly regardless of how many lines your text contains.

Case-insensitive sorting is enabled by default, so 'Apple' and 'apple' are treated the same — but you can toggle it off if exact ASCII order matters to you. All sorting is client-side, meaning your data never leaves your browser.