Skip to content
WebKitool

Sort Lines

Sort lines alphabetically, numerically, by length, in reverse or shuffled.

Loading tool…

Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.

How to use the sort lines

  1. Paste your lines.
  2. Choose the order, and whether to trim or ignore case.
  3. Copy or download the sorted list.

About this tool

Alphabetical sorting uses your locale's collation rules rather than raw character codes, which matters as soon as accents are involved: a code-point sort puts every accented word after Z, while a locale sort puts 'école' where a reader expects it.

Numeric sorting reads the leading number in each line, so '10. item' comes after '9. item' rather than before it. Shuffling uses the browser's cryptographic randomness, making it fair enough for draws and running orders.

Common uses

  • Alphabetising a list of names.
  • Ordering numbered items correctly.
  • Randomising a running order.

Frequently asked questions

Why is my numbered list in the wrong order alphabetically?
Alphabetically, '10' sorts before '9' because it compares character by character. Choose numeric sorting instead.
Does it handle accented characters properly?
Yes. Sorting uses your locale's rules, so accented letters sit alongside their base letters rather than at the end.

Related tools