Skip to content
Convertto

Line Sorter

Sort lines alphabetically, numerically, by length or in reverse — with natural-order support.

To sort lines, paste your list above and choose an order: alphabetical, reverse alphabetical, by line length, or simply reversed. Natural order is on by default, so item2 sorts before item10 rather than after it.

Runs in your browser
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

Why does my numeric sort put 10 before 2?

Because a plain alphabetical sort compares character by character, and "1" comes before "2". Numeric sorting reads the digits as a number instead, which is why it needs to be selected explicitly.

What is a natural sort?

One that reads embedded numbers as numbers, so file2 comes before file10. It is what a person expects and what most operating systems now do, but it is not what a plain string comparison gives you.

How to use the line sorter

  1. 1Enter or paste your lines.
  2. 2Choose the sort.
  3. 3Turn "Natural / numeric order" on or off as needed.
  4. 4Turn "Case sensitive" on or off as needed.
  5. 5The result appears immediately — copy or download it.

Embed this tool

Put the working line sorter on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More text tools