Home › Text Tools › Sort Lines

Sort Lines

Sort any list alphabetically, by number, by length, or shuffle it randomly.

Open a text file or paste below
  • Free & unlimited
  • No sign-up
  • Instant results

How to use the Sort Lines

  1. Paste your list, one item per line.
  2. Pick a sort order.
  3. Copy the sorted list.

Alphabetical vs numeric order

Plain alphabetical sorting puts item 10 before item 2, because it compares character by character. Numbers 1 → 9 uses natural sorting, so numbers inside text are compared as numbers: item 1, item 2, item 10.

Shuffle

Shuffle puts lines in a random order, handy for picking a random winner, mixing quiz questions or randomising a playlist. Each click on the option gives a new order.

Frequently asked questions

Does sorting handle accents?

Yes. It uses your browser's language-aware sorting, so é sorts next to e.

Can I sort and remove duplicates at once?

Yes, tick Remove duplicates.

Is my text uploaded?

No. Sorting runs in your browser.

Related tools