← All tools

Sort lines

Paste your list, pick how to sort it and copy the result. Your text never leaves this computer.

Words
0
Characters
0
Characters (no spaces)
0
Sentences
0
Paragraphs
0
Lines
0
Reading time
0
Speaking time
0

Sorting by the right alphabet

Many programs sort text by the computer's character codes, so accented names end up in odd places: "Émile" after Z, or "Ångström" at the very end. This tool sorts by the alphabet of the page language, so lists with accented or non-English names end up where a reader expects them.

Natural sorting and numbers

In plain alphabetical sorting "File 10" comes before "File 2", because characters are compared one at a time. This tool uses natural sorting: it treats numbers as numbers and puts 2 before 10. Chapter numbers, invoice numbers and version lists come out the way you expect.

The "By number" option looks at the first number in each line. It is handy for sorting a product list with prices or a results list with scores; lines without a number go to the end.

Other options

Sorting by length puts short lines first, which helps when reviewing keyword or slogan lists. Reverse flips the order of the lines, useful for lists where the newest entry is at the bottom. Shuffle puts the lines in random order, ideal for prize draws, question order or presentation order.

Removing duplicates and dropping empty lines while sorting are one click away too.

Privacy

Sorting happens entirely in your browser; your list is never sent to a server or stored.

How to use it

  1. Paste your list into the box, one item per line.
  2. On the Sort tab pick A→Z, Z→A, by number, by length, reverse or shuffle.
  3. Optionally turn on Remove duplicates and Skip empty lines.
  4. Copy the result.

Frequently asked questions

Is the alphabet order language-aware?

Yes. Sorting follows the alphabet of the page language, so on the Turkish page ç, ğ, ı, ö, ş and ü go to their proper places.

How are numbers sorted?

Natural sorting puts 2 before 10. The By number option uses the first number in each line, and lines without a number go to the end.

Does upper and lower case matter?

By default it is ignored. Turn that option off to take letter case into account.

Related tools