sort lines alphabetically
Alphabetise a list, sort by length, reverse it or shuffle it randomly. Numbers sort naturally — item 2 comes before item 10.
How to use it
- Paste your list, one item per line.
- Pick A→Z, Z→A, by length, reverse or shuffle.
- Copy the sorted list or download it.
Natural, language-aware sorting
Plain computer sorting puts “item 10” before “item 2” and every uppercase word before every lowercase one. We use natural sorting instead: numbers inside lines are compared as numbers, and capital letters don't jump the queue unless you turn on case-sensitive sorting.
Sorting uses your browser's language rules, so accented letters (é, ñ, ü) sit next to their plain versions instead of at the end, and Hindi or other scripts sort in their proper alphabetical order.
Shuffle and the other modes
Shuffle uses a Fisher–Yates shuffle, which gives every possible order an equal chance — handy for picking a random winner, randomising quiz questions or making a fair presentation order. Press shuffle again for a new order.
“Shortest first” and “longest first” sort by the number of visible characters, useful for finding the longest keyword or tidying a list of tags. “Reverse” simply flips the current order, last line first.
Everyday examples
Teachers alphabetise class lists and randomise who presents first. Shop owners sort product names before printing a price list. Marketers sort keyword exports and pull out the longest-tail phrases. Developers sort import lines, environment variables or JSON keys so diffs stay clean, and event organisers shuffle names for a fair lucky draw.
Tip: “ignore case” is on by default so “apple” and “Apple” sit together. Turn it off when capitalisation matters — for example to group all-caps codes before lowercase words. Empty lines can be dropped in the same pass so they don't collect at the top of an A → Z sort.
Private by design
Your text is processed by your own browser and never sent to a server — there's no upload, no account and nothing saved after you close the tab. That makes it safe for drafts, school work, client documents and lists containing personal data.
Frequently asked questions
How do I sort a list alphabetically?
Paste the list with one item per line and choose A → Z. The sorted list appears instantly, ready to copy.
Can I pick a random winner from a list?
Yes — paste the names, choose shuffle, and take the first line. The shuffle is random each time you press it.
Does it remove duplicates too?
Sorting keeps every line. Use the remove duplicate lines tool first if you want each item only once.
Is this tool free?
Yes — completely free with no sign-up, no word limit and no watermark. It works on phones, tablets and computers.
Does it work offline?
Once the page has loaded, yes. All the processing is done by JavaScript in your browser, so you can even switch off your internet and keep working.