Put any list in alphabetical order
Names, keywords, file names, product codes, bibliography entries: paste them one per line and get them back sorted. It takes a second, and your original list is never changed until you copy the result. A sorted list is easier to scan, easier to compare with another list and much easier to check for duplicates, so it is often the first thing worth doing with messy data before you move on to anything else.
Sorting that follows the language, not just the code
A plain computer sort puts every capital letter before every small letter and pushes accented letters to the very end. This tool uses the sorting rules of the language you pick, so Apple and apple sit together, and a German word with an umlaut or a Bengali word lands where a reader expects it.
How to use Sort Text Lines Alphabetically
- Paste your list into the box, one item on each line.
- Choose the order: A to Z, Z to A, shortest first, longest first, reverse or shuffle.
- Pick the language and the rules: ignore case, ignore accents, natural numbers, leading articles and punctuation.
- Optionally sort by a column: enter its number and the separator that splits each line.
- Solve the security check, press Sort lines, then copy or download the sorted list.
About Sort Text Lines Alphabetically
Sorting uses the browser's own language collation, the same rules operating systems use for file lists. With ignore case and accents both on, Zebra, zebra and Zébra count as equal and keep their original order. Natural number order reads digits as numbers, so file2 comes before file10. Skip leading The, A and An removes those words only for the comparison, so The Beatles is filed under B but still printed with its full text. Ignore punctuation compares lines without symbols such as quotation marks and dashes. Sort by column cuts every line at your separator (or at spaces if you leave it empty) and compares only the column you choose; lines with equal values keep their original order. Shortest and longest first compare the number of characters. Shuffle puts the lines in a random order using the browser's secure random numbers.
Purpose of Sort Text Lines Alphabetically Tool
Use it to alphabetise a reading list or glossary, tidy keyword and tag lists, order names for a roll call, sort CSV-style rows by one column, prepare a list before comparing it with another, or draw a random running order with the shuffle option.
Limitations of Sort Text Lines Alphabetically
- The tool sorts whole lines only. It does not remove repeated lines; use the Remove Duplicate Lines tool for that.
- Language rules depend on your browser. If a language is missing from your device the browser quietly uses its default order.
- Sort by column is a simple split on the separator. A separator inside quotation marks in a CSV file is still treated as a separator.
- Lists over 500,000 lines are refused to keep the page fast.
Privacy and data
Sort Text Lines Alphabetically runs entirely in your browser. What you type or select is processed on your own device and is never sent to or stored on our server. See our Privacy Policy for details.
Frequently asked questions
How do I sort lines alphabetically?
Paste the list with one item per line, keep the order on A to Z, solve the security check and press Sort lines. Copy the result when it appears.
Why does item 10 come before item 2 in other sorters?
A plain text sort compares one character at a time, so 1 comes before 2. Tick Natural number order and the tool reads whole numbers, which puts item 2 first.
Is the line sorter free and safe to use?
Yes. The line sorter is free to use and runs in your browser, so your list is not uploaded, stored or logged.
How do I sort a list from Z to A?
Choose Z to A as the order and sort. You can also sort by length, shuffle the lines or use natural number order.
Can I sort lines by a column?
Yes. Choose column sorting, set which column to use and sort, and the lines are ordered by that column.
Rate Sort Text Lines Alphabetically
No ratings yet. Be the first to rate this tool.
Report a bug or give feedback
Popular tools
Morse Code to Text
Decode Morse code made of dots and dashes into readable text, with flexible separators and error marking.
Text ToolsWebpage URL to Text
Turn a web page address, pasted page source or an HTML file into clean readable text without ads and menus.
Text ToolsASCII to Text Converter
Decode decimal, hex or octal ASCII codes into text, with auto-detection, a code table, control-character names and clear errors for bad codes.
Text ToolsBinary to Text Converter
Decode binary into text as UTF-8, 7-bit ASCII or 16-bit UTF-16, with or without spaces, and find exactly what is wrong when it will not decode.
Text ToolsBMI Calculator
Work out your BMI, category and healthy weight range in metric or imperial units.
Health ToolsBullet List Generator
Turn lines, commas or sentences into a bullet, numbered or checklist, with nested levels, as text, Markdown or HTML.
Text Tools