Skip to content

Sort Lines

Sorts lines alphabetically, naturally (2 before 10), by length, in reverse, or shuffles them.

Your text stays on this device

This tool runs entirely inside your web browser. Your text is processed on your own device and is never sent to our servers. How this works

Sorted

Sort Lines is a free tool that puts lines of text in order: alphabetically, in natural number order, by length, reversed, or randomly shuffled. It follows the sorting rules of your language, so accented letters land in the right place. Sorting happens in your browser.

How to sort a list

  1. Paste your list, one item per line.
  2. Choose an order. The sorted list appears on the right.
  3. Copy or download the result.

Sort orders

Capitals first

By default, “apple” and “Apple” sort together. Tick Capitals first to put uppercase before lowercase when words are otherwise the same.

To remove repeated items as well, use Remove Duplicate Lines.

Frequently asked questions

What is natural sort?

It orders numbers by value, so “item 2” comes before “item 10”. Plain alphabetical sorting would put “item 10” first, because it compares character by character.

How are accented letters sorted?

Using your language’s rules, so “Éclair” sorts with the E words rather than after Z.

Is the shuffle truly random?

Yes. It uses an unbiased shuffle driven by your browser’s random number generator. Click “Shuffle again” for a new order.

Last updated

Missing a feature, or need a tool we don’t have? Suggest it.