🔤 Text Tools

Sort Lines

Sort lines alphabetically, by length, or reverse them.

About the Sort Lines

The Sort Lines tool reorders a block of text alphabetically, reverse-alphabetically, by length, or shuffles it randomly. It is useful for tidying lists, organising data, or arranging items before pasting them somewhere else.

Frequently asked questions

Sorting is alphabetical, so numbers are ordered by their characters rather than their value — meaning 10 can come before 2. For true numeric ordering, pad numbers with leading zeros first.

It uses a natural locale comparison, so it generally groups upper and lower case sensibly rather than putting all capitals first. Results match how most people expect an alphabetical list to read.