Sort lines of text

Put a list in alphabetical order, sort it by length or by number, reverse it or shuffle it.

Your text

Sort lines

Text never leaves your device · Free, no sign-up · No length limit

How to sort lines

  1. Paste or open your list, one item per line.
  2. Pick how to sort it.
  3. Copy or download the sorted list.

Natural order

A to Z sorting follows the rules of your language and puts numbers in natural order, so “item 2” comes before “item 10” and accented letters sort next to their plain forms.

Shuffle fairly

Shuffle uses a Fisher–Yates shuffle with your browser's secure random numbers, so every order is equally likely: good for drawing names or randomizing a quiz.

Questions about Sort lines

Is my list uploaded?

No. Sorting happens in your browser tab, and nothing is sent to a server.

Can I sort and remove duplicates at once?

Yes. Turn on Remove duplicate lines in the panel.

How does sorting by number work?

Lines are ordered by the first number in them; lines without a number go last.