Sort Lines Alphabetically

Alphabetize a list, sort it by number or by length, reverse it, or shuffle it. Natural sort keeps item2 ahead of item10.

Sort order
0Lines in
0Lines out
0Removed

How to use

  1. Paste your list in the input box, one item per line.
  2. Pick a sort order and tick the options you need, such as natural sort or remove blank lines.
  3. Copy the sorted list from the result box.

Frequently asked questions

How do I put a list in alphabetical order?

Paste one item per line and click A → Z. The sorted list appears below and updates as you keep typing.

What does natural sort do?

Natural sort reads runs of digits as numbers, so item2 lands before item10. A plain alphabetical sort compares character by character and puts item10 first because the character 1 sorts before 2.

Why do uppercase lines sort separately?

That happens when case-sensitive is on, because uppercase letters have lower character codes than lowercase ones. Turn case-sensitive off to sort Apple and apple together.

Does sorting change my indentation?

No. The ignore leading whitespace option only affects the comparison, so lines keep the exact spaces or tabs they started with.

Last updated

Powered by maratool