Sort lines alphabetically

Put any list in alphabetical, reverse, numeric or random order.

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

Your text never leaves your device. Everything runs in your browser.

How to use

  1. Paste your list with one item per line.
  2. Choose A → Z, Z → A, By number, By length or Shuffle.
  3. Copy the sorted list.

Examples

A → Z (natural order)
item 10
Item 2
Árvore
Árvore
Item 2
item 10

Sorting uses natural order: "item 2" comes before "item 10", as a person would expect, and accented letters are placed next to their plain version instead of at the end of the list.

By number looks for the first number in each line, so you can sort lines such as "Order 15 – shipped" by the order number. Decimal numbers with a dot or a comma are supported.

Shuffle mixes the lines randomly, which is handy for drawing names, creating random teams or changing the order of quiz questions.

Frequently asked questions

Is the sorting case-sensitive?

No. Uppercase and lowercase versions of a word are sorted together.

How do I sort and remove duplicates at the same time?

Click Remove duplicates first and then Sort. Both tools work on the same text.

Does it keep empty lines?

Empty lines are sorted like any other line and end up at the top. Use Remove empty lines first if you do not want them.

More tools