Sort Lines Alphabetically

Sort a list alphabetically, in reverse, by number or by length, with numbers in natural order (2 before 10). Paste and click. Free, in your browser.

Runs in your browser. Your files are never uploaded. How it works

Paste one item per line and press Sort A → Z. Numbers inside the text are sorted the way people count, so “Chapter 2” comes before “Chapter 10”, unlike in many spreadsheets. Use Z → A to reverse, Sort by number for prices and scores, or Sort by length for shortest first.

A sorted list: Amsterdam, athens, Berlin, Évora, item 1, item 2, item 10, Zürich
Accents, capitals and numbers in one list. Évora sorts with E, and item 10 comes after item 2.

Frequently asked questions

Does it sort accented letters correctly?

Yes. Sorting follows your browser's language rules, so É sorts with E, and upper and lower case are kept together.

Can I remove duplicates at the same time?

Sort first, then press Remove duplicates. Each step can be undone.

Related tools