Sort lines alphabetically

Paste a list with one item per line and sort it alphabetically, by length, in reverse or at random. Numbers sort naturally, so “file 2” comes before “file 10”.

  • No sign-up
  • Text never leaves your device
  • Instant, unlimited
  • Works offline
0 characters
OptionsYour choices are remembered

How to use it

  1. Paste your list, one item per line.
  2. Pick an order and options.
  3. Copy the sorted list.

Sorting options

  • A → Z / Z → A: alphabetical, using the sorting rules of your language, so letters like æ, ø, å, ä or ñ land in the right place.
  • Natural numbers: “item 2” before “item 10”, unlike plain computer sorting.
  • By length: shortest or longest lines first.
  • Reverse: flip the current order.
  • Shuffle: random order, handy for draws and quizzes.

Private by design

Everything happens on your device in your browser. Your text is not uploaded, logged or stored, and the page keeps working if you go offline after it has loaded. Only your option choices are saved, in your own browser.

Frequently asked questions

How do I sort a list alphabetically?

Paste the list with one item per line and choose A → Z. Copy the result when you are done.

Why does 10 come before 2 in other tools?

Plain sorting compares character by character. Natural number sorting, on by default here, reads numbers as numbers.

Can it remove duplicates while sorting?

Yes. Tick “Remove duplicates”.

Is upper and lower case treated the same?

Yes, unless you tick Case-sensitive.

More free text tools