Skip to content

Sort lines alphabetically

Sort lines A to Z or Z to A online for free, with proper language ordering and numbers sorted as numbers. No sign-up and it runs in your browser.

AvailableIn your browserInput: Text

How to use: Sort lines alphabetically

  1. Paste the lines.
  2. Choose A→Z or Z→A and the case, number and empty-line options.
  3. Copy the sorted result.

What it accepts and what you get

Input
Text with one entry per line.
Output
The lines sorted in the page language's alphabetical order.
Where your data is processed
Your data is processed in your browser and is not sent to our servers.

Limitations and notes

  • Accented letters sort next to their base letter.
  • With “numbers as numbers”, file2 comes before file10.

Frequently asked questions

How do I sort a list alphabetically?

Paste the lines, choose A→Z or Z→A and copy the result. Sorting follows the alphabet of the page language.

How are accents and numbers sorted?

Accented vowels sort next to plain ones, and with “numbers as numbers” file2 comes before file10.

Does it put “file2” before “file10”?

Yes, with “numbers as numbers” turned on: file2 then comes before file10. Accented letters sort next to their base letter.

When to use it

  • When you need to sort a pasted list alphabetically.
  • To sort file names that contain numbers.

Examples

A to Z
Paste the names and choose A→Z; accented letters sort next to their base letter.
Numbers as numbers
With the option on, file2 comes before file10.

Common mistakes

  • Sorting numbers as text: “10” lands before “2” unless you turn the option on.
  • Leaving empty lines without deciding what to do with them.

Suggested next steps