Developer

Line Sorter

Paste a list, pick A–Z or Z–A, and get it sorted instantly — optionally ignoring case and stripping out blank lines. It all runs locally in your browser.

Sorted
Apple
Apple
banana
cherry
date

How it works

Every line becomes a sortable item, split on newlines. The tool orders them with a locale-aware comparison that also handles embedded numbers sensibly, so item2 lands before item10 instead of after it.

Toggle 'Ignore case' and uppercase and lowercase words interleave naturally instead of all-caps entries jumping to the top. Toggle 'Remove blank lines' to throw away empty rows before sorting, which is handy for cleaning up copied lists.

Nothing is mutated in place — you keep your original text in the box and the sorted result appears below, ready to copy. Flip between A–Z and Z–A and the output updates the moment you click.

Frequently asked questions

How does it decide the order of numbers mixed into text?

It uses a numeric-aware comparison, so a line like 'file9' sorts before 'file10' the way you'd expect, rather than treating the digits purely as characters.

What does ignoring case actually change?

With it off, sorting is strict, which tends to group capitalized words separately from lowercase ones. With it on, 'Apple' and 'apple' are treated as equivalent for ordering, giving a more natural alphabetical list.

Will removing blank lines also trim spaces from my lines?

It only drops lines that are empty or whitespace-only. The visible text on each remaining line is left exactly as you typed it.