Sort Text Lines Alphabetically

Sorting a list in a spreadsheet means importing it, sorting, and exporting again. This tool does it in the browser with the options that actually matter: natural numeric sorting so item10 lands after item9, case-insensitive ordering, and a shuffle for randomising a list.

How to use it

  1. Paste your lines into the input box.
  2. Choose alphabetical, numeric, or by line length.
  3. Pick ascending or descending, and whether case matters.
  4. Copy the sorted output, or use shuffle to randomise instead.

Frequently asked questions

Why does plain sorting put item10 before item2?

Because a plain text sort compares character by character, and "1" comes before "2". Natural or numeric sorting reads the digits as a number and orders them correctly.

How are uppercase and lowercase handled?

A strict sort puts all uppercase before lowercase, since that is their character order. Case-insensitive sorting is usually what you want for names and word lists.

Does it handle accented characters properly?

Yes. Sorting uses locale-aware comparison, so é sorts next to e rather than being pushed to the end of the list.

Can I sort by line length?

Yes. Useful for finding unusually long or short entries when cleaning data, or for arranging keyword lists by specificity.

All free tools · Blog · About · Contact

Also available in: Español · Português · Français · Deutsch