Sort Lines Alphabetically
Paste any list and sort its lines — A to Z, Z to A, by length, or in natural order so item2 comes before item10. You can also reverse or shuffle the lines, drop empty lines and remove duplicates in the same pass. Runs entirely in your browser.
The sorted list will appear here.
How to use this
Paste your list on the left — names, keywords, file names, product codes, anything with one item per line — pick a sort order, and the result updates as you type. Copy it or download it as a text file. Teachers call this kind of tool an alphabetizer: it puts a word list, spelling list or class list into alphabetical order.
Alphabetical vs natural order
Plain alphabetical sorting compares text character by character, which puts item10 before item2 — correct for words, wrong for numbered lists. Natural order understands the numbers inside lines, so item1, item2 and item10 come out in the order a human expects. Use it for file names, chapter lists, version numbers and anything else with embedded numbers.
Two more things worth knowing: with case sensitivity off (the default), Apple and apple sort as equals and capital letters do not jump the queue; and sorting is stable, so lines that compare equal keep the order they had in your original list.
Frequently asked questions
How do I sort a list alphabetically?
Paste your list into the box — one item per line — and the sorted result appears instantly. Choose A to Z or Z to A, then copy the result or download it as a .txt file.
What is natural sort order, and when should I use it?
Natural order understands the numbers inside lines, so item1, item2 and item10 sort in that order. Plain alphabetical sorting compares characters and puts item10 before item2. Use natural order for file names, chapters, versions and any numbered list.
Can this tool remove duplicates while sorting?
Yes — tick 'Remove duplicates' and repeated lines are dropped in the same pass. If you need more control over which copy is kept, use the Remove Duplicate Lines tool instead.
What is an alphabetizer?
It is another name for a tool like this one: teachers use alphabetizers to put word lists, spelling lists and class lists into alphabetical order.
Is my list uploaded anywhere?
No. Sorting happens entirely in your browser, so nothing you paste leaves your device.