Text Sorter

<link rel="canonical"> · <meta name="description">

Unsorted Lines
Sorted Lines
(Output will appear here)

How to Sort Text Lines

Enter one item per line in the input box. Click Sort A→Z to arrange lines in alphabetical order, or Sort Z→A for reverse alphabetical order. Empty lines are automatically filtered out.

Common Use Cases

Sorting Options

The sorter supports case-insensitive alphabetical sorting by default. Numbers sort before letters. Special characters sort according to their ASCII/Unicode values.

FAQ

Is the sorting case-sensitive?No, the sorter treats uppercase and lowercase letters as equivalent. "Apple" and "apple" sort together.
What happens to empty lines?Empty lines are filtered out and don't appear in the sorted output.
Can I sort numbers?Yes, numbers sort numerically (1, 2, 10) not lexicographically (1, 10, 2).