Embed this tool on your site
About this tool
Sorting a list by hand is tedious enough at 10 items and completely impractical at 100. Alphabetizer sorts any line-based list A → Z, Z → A, or by length (shortest first, with ties sorted alphabetically), and the output updates as you type or change a setting. Case sensitivity defaults to Ignore case, so 'Zebra' and 'apple' sort by letter; Case-sensitive mode keeps a locale-aware order in which a lowercase word sorts just before its capitalized form rather than putting all capitals first. Sorting uses the browser's locale-aware collator with numeric ordering, so 'item2' comes before 'item10' and accented letters sort next to their base letters. Blank lines are dropped; every other line is kept exactly as typed, including duplicates. Alphabetizer works on any line-delimited content: word lists, city names, product SKUs, file names, bibliography entries — anything where a consistent order makes content easier to navigate, compare, or publish.
Why use it
A–Z, Z–A, and Length Sorting: Three sort modes cover the most common ordering needs for any line-based list.
Case-Insensitive Alphabetical Sort: Sort 'Zebra', 'apple', and 'Mango' by letter without uppercase entries jumping to the top.
Natural Number Ordering: Numbers inside lines sort by value, so 'Chapter 2' comes before 'Chapter 10' without zero-padding.
Length-Based Sorting: Sort shortest-to-longest for formatting, typography, or data inspection tasks; equal-length lines are sorted alphabetically.
Preserves Line Content: Only the order changes — each line's text is never modified, though blank lines are dropped.
Instant on Any List Size: Sorts thousands of lines in milliseconds using the browser's native sort algorithm.
How to use
- Paste your unsorted list into the Lines box, one item per line.
- Choose a Sort mode: A → Z, Z → A, or By length.
- Choose Case sensitivity: Ignore case (the default) or Case-sensitive.
- The sorted list appears instantly in the Output box.
- Select the output and copy it to your clipboard.
When it helps
- When alphabetizing a bibliography or reference list before submission.
- When sorting a keyword list for an SEO campaign into alphabetical order for review.
- When organizing a product catalog, feature list, or menu into alphabetical order for readability.
- When comparing two lists side-by-side after sorting both alphabetically to spot differences.
- When sorting a list of CSS class names or HTML attributes into a consistent order for maintainability.
- When preparing a glossary or index where entries must appear in alphabetical sequence.
Examples
01Alphabetize a word list
InputMango
Apple
Zebra
Banana
apricot
Expected resultA–Z case-insensitive: Apple
apricot
Banana
Mango
Zebra
Expected resultShortest first: Hi
OK
Hello
Goodbye
Expected resultZ–A: fish
dog
cat
bird
Tips
- Sort both lists alphabetically before using Text Diff to compare them — the diff output will be cleaner and easier to read.
- Use length sorting to find your longest and shortest entries quickly — useful for spotting outliers or formatting issues in a dataset.
- To remove duplicates as well, run the list through Line Deduplicator, which also offers A → Z and Z → A output orders.
- Switch to Case-sensitive when 'apple' and 'Apple' must always come out in the same order — the lowercase form comes first.
- Numbered items like 'Step 2' and 'Step 10' already sort in numeric order, so you can skip zero-padding.
Frequently Asked Questions
Does it sort case-insensitively by default?⌄
Yes. Ignore case is the default, so 'Apple' and 'apple' compare as equal. Case-sensitive mode still uses locale-aware ordering, which places a lowercase word just before the same word in capitals (apple, Apple, banana) rather than putting every capital first.
Does length sorting sort shortest first or longest first?⌄
Shortest lines first. Lines of equal length are sorted alphabetically. There is no longest-first option; run the result through Reverse line order in Text Reverser if you need it.
How does it handle numbers in a list?⌄
Numbers are compared by value, not character by character, so '2' sorts before '10' and 'item9' before 'item10'. You do not need to pad numbers with leading zeros.
Does it sort multi-word lines as a whole unit?⌄
Yes. Each line is sorted as a single string, so 'New York' sorts by 'N', not by 'Y'. The entire line content is used as the sort key.
Can I sort lines in reverse alphabetical order?⌄
Yes. Choose the Z–A option to sort in descending alphabetical order, which places Z entries first and A entries last.
Does sorting modify the content of any line?⌄
No. Only the order of lines changes, and each line is kept exactly, including punctuation, capitalization and leading spaces. Blank lines and lines containing only spaces are removed from the output.
Can I use it to sort a list of file names?⌄
Yes. Paste file names one per line and the alphabetical sort will produce the same ordering you would see in most file explorers with the 'sort by name' option.
Does it handle non-ASCII characters like accented letters?⌄
Yes. Both modes use the browser's locale-aware collator, so accented letters like é, ñ and ü sort next to their base letters instead of after z.
Glossary
- Lexicographic sort
- A sort that compares strings character by character using their Unicode code point values. Uppercase letters have lower code points than lowercase letters in ASCII.
- Case-insensitive sort
- A sort that compares strings after converting them to the same case, so 'Apple' and 'apple' are treated as equivalent.
- Stable sort
- A sort algorithm that preserves the original relative order of elements that compare as equal. Most modern browser sort implementations are stable.
- Natural sort
- A sort that handles numbers within strings numerically rather than lexicographically, so '10' sorts after '9' rather than before '2'.
- Descending sort
- Sorting in reverse order so Z comes before A, or larger values come before smaller values.
- Locale-aware sort
- A sort that uses language-specific rules for ordering characters, particularly for accented and non-ASCII letters.
A LITTLE HELP. A LOT DONE.
Good tools.
Great flow.
Your shortcut to the everyday. Create, convert, calculate,
and get back to what you love.
✳
✳
✓ Free to use✓ No sign-up✓ 500+ possibilities