How it works
Paste a list — one item per line — then pick how to order it. A–Z sorts ascending and Z–A descending, using natural comparison so numbers sort sensibly (2 before 10). Reverse simply flips the current order without sorting. Turn on "remove duplicates" to keep only the first copy of each identical line, and "trim lines" to strip leading and trailing spaces first, so near-duplicates collapse together. Empty lines are dropped. Everything runs locally in your browser; nothing is uploaded.
Text Sorter
Sort lines alphabetically, reverse them, and remove duplicates.
FAQ
How does the line sorter order my text?
It splits your text into lines and sorts them alphabetically. A–Z is ascending order and Z–A is descending. By default sorting is case-insensitive, so "Apple" and "apple" are grouped together.
How are numbers sorted?
Sorting uses natural comparison, so lines that start with numbers are ordered sensibly — for example 2 comes before 10, not after it.
What does "remove duplicates" do?
It keeps only the first occurrence of each identical line and deletes the rest. Combine it with the trim option so lines that differ only by leading or trailing spaces are treated as duplicates.
Is my text uploaded anywhere?
No. Sorting happens entirely in your browser. Nothing you paste is transmitted to a server or stored.
Related tools
Case Converter · Remove Line Breaks · Find & Replace · Word / Character Counter