Text tools

Text Sorter

Sort lines of text alphabetically, with options to ignore case and drop blank lines.

5 lines
Sorted lines
apple Apple Banana Cherry date

How it works

Sorting a list by hand is tedious and error-prone. Paste your lines here and the tool orders them alphabetically, either A to Z or Z to A, in an instant.

Two options handle the common annoyances: ignore case so that capitals do not jump ahead of lowercase, and remove blank lines so the result is clean.

It works on anything that lives one item per line — names, tasks, tags, imports — and you can copy the sorted result straight out.

Frequently asked questions

Does it sort by whole lines or by words?

It sorts by whole lines, comparing them character by character from the start. Each line stays intact and only their order changes.

What does ignore case do?

With it on, Apple and apple are treated as equal for ordering, so capitalization does not scatter related items. With it off, capitals sort before lowercase.

Will it remove duplicate lines too?

This tool focuses on sorting and can strip blank lines. To remove duplicates, use the dedicated remove duplicate lines tool.