Sort Lines Alphabetically
Put any list in order with one click: A to Z, Z to A, natural number order where 2 comes before 10, by length, reversed, or randomly shuffled.
How to use the Sort Lines Alphabetically
- Paste your text with one item per line.
- Pick options such as ignoring case and removing duplicates or empty lines.
- Click the sort you want, then copy the result.
About the Sort Lines Alphabetically
Plain alphabetical sorting puts “item 10” before “item 2” because it compares character by character. The Numbers mode uses natural sorting, which reads the numbers inside text and orders file names, chapter titles and version numbers the way a person would. Case-insensitive sorting stops capitalised words from all jumping to the top. Shuffle uses your browser’s cryptographic random generator, so it is suitable for randomising a quiz order or a raffle list. Sorting respects accented letters in most languages because it uses your browser’s locale-aware comparison.
Frequently asked questions
How do I sort numbers correctly so 10 comes after 9?
Use the “Numbers (1, 2, 10)” button. It recognises numbers inside each line and sorts them by value.
Can I sort in reverse alphabetical order?
Yes — press Z → A. “Reverse order” instead flips the current order without sorting.
Is the shuffle truly random?
It uses the browser’s cryptographically secure random numbers and an unbiased Fisher–Yates shuffle.
Does it work with accented and non-English letters?
Yes. Sorting uses locale-aware comparison, so é sorts with e and other alphabets sort in their natural order.
Related free tools
- Find & Replace — Bulk replace text with optional case sensitivity.
- Fancy Text Generator — Turn text into 𝐛𝐨𝐥𝐝, 𝓈𝒸𝓇𝒾𝓅𝓉, 🅱🅻🅾🅲🅺 and 25+ copy-paste font styles.
- Remove Duplicate Lines — Delete repeated lines from a list instantly — keep the first or count them.
- Remove Line Breaks — Join broken lines from PDFs and emails into clean paragraphs.
- Keyboard Layout Fixer (EN/RU) — Fix text typed in the wrong layout: “ghbdtn” → “привет” and back.
- Resume Maker — 10 ultra-modern templates — edit live, export PDF & Word.
Runs in your browser — what you enter stays on your device. Published .