Sort Lines Alphabetically

Sort lines A–Z, Z–A, by length, naturally by number, reverse or shuffle them.

Runs instantly in your browser — results update as you type.

How do I sort a list alphabetically?

A line sorter reorders the lines of a text — alphabetically, by length, in reverse or randomly — so lists of names, keywords or items are easy to scan and compare.

Sort modes

  • Alphabetical (natural) — item2 comes before item10, like a person would expect; accents are handled by your language's rules.
  • By length — shortest lines first (or longest with Descending).
  • Reverse — flips the current order.
  • Shuffle — random order using a secure random generator.

Combine with "Remove duplicates", "Trim spaces" and "Remove empty lines" to clean the list in one step.

Frequently asked questions

What is natural sorting?

Numbers inside text are compared as numbers, so "file 2" comes before "file 10".

Can I sort Z to A?

Yes, tick Descending.

Does it change my text?

Only the order of lines (and spaces or duplicates if you choose those options).