What is an alphabetizer?
An alphabetizer is a tool that takes a list written one item per line and returns it in alphabetical order. If you have searched for an “alphabetizer”, “sort lines alphabetically”, “alphabetize list” or “put list in alphabetical order”, you want the same job done: a jumbled column of names, titles, files or products turned into an ordered column you can scan, check and publish. Alphabetical order feels too simple to need a tool — until the list is 400 lines long, contains duplicates, blank lines, stray spaces, mixed capitalisation and file names in which the numbers matter. Then hand-sorting stops being careful work and becomes an error factory, and a dedicated sorter earns its place.
This page does that job in your browser. Paste text, choose how to sort text lines — A to Z, Z to A, natural sort, by length, reverse or shuffle — set the cleaning options, and copy or download the result. Nothing is uploaded: the comparison and reordering happen in JavaScript on your own device, a privacy property this guide returns to because lists are often personal — class rosters, customer names, inventories — in a way a single search term never is. The sections below explain each mode honestly, including the filing conventions behind the options and the limits of what a line sorter can do.
How to sort lines alphabetically, step by step
The workflow is deliberately small. First, get your items one per line: most spreadsheets, documents and web pages already copy that way, one row or paragraph becoming one line. Second, decide whether the plain A-to-Z order is really the order you need — the modes table in the next section is the decision aid. Third, set the three cleaning options before you judge the output, because duplicates, blanks and untrimmed spaces distort a sort in ways that look like sorting errors but are not. Fourth, check the counts: input lines, output lines and lines removed tell you at a glance whether cleaning did what you expected. Finally, copy the output rather than retyping anything — retyping a sorted list reintroduces exactly the errors the sort removed.
A worked miniature makes the defaults concrete. Paste three lines — banana, Apple, cherry — with case-sensitive sorting off, as it is by default. The tool compares the lines ignoring case, so Apple (a) comes first, then banana (b), then cherry (c): Apple, banana, cherry. Turn case-sensitive sorting on and the same paste can order differently in larger lists, because capitals then sort before lowercase letters. Neither result is wrong; they answer different questions, and the case section below explains which question each setting asks.
The sort modes compared: a data table
Eight modes cover the orders people actually ask a line sorter for. The table states what each mode compares, the order it produces on the same three test lines, and the job it suits — so you can choose by evidence rather than by trying each one and eyeballing the result.
| Mode | What is compared | banana / Apple / cherry becomes | Best for |
|---|---|---|---|
| A to Z | Letters, case-insensitive by default | Apple, banana, cherry | General lists, indexes, glossaries |
| Z to A | Letters, descending | cherry, banana, Apple | Descending indexes, newest-letter-first checks |
| Natural sort | Letters, with digit runs compared as numbers | Apple, banana, cherry (and file2 before file10) | File names, versions, chapters, addresses |
| Natural descending | Natural comparison, reversed result | cherry, banana, Apple | Numbered lists in descending order |
| By length, shortest first | Character count, then alphabetically | Apple, banana, cherry (5, 6, 6 — ties alphabetical) | Headlines, labels, shortest-entry checks |
| By length, longest first | Character count descending, then alphabetically | banana, cherry, Apple | Overflow checks, longest-entry audits |
| Reverse lines | Nothing — flips the current order | cherry, Apple, banana (the paste flipped) | Undoing an order, flipping a sequence |
| Shuffle | Nothing — random order | A different order every time | Running orders, playlists, randomised practice |
Two rows deserve a warning. Reverse is not a sort at all: it preserves every relationship in the input except direction, so reversing an unsorted list gives you an unsorted list backwards — correct, and occasionally exactly what is wanted, but not Z to A. Shuffle is also not a sort, and its output should never be presented as one. Every other mode is deterministic: the same input with the same options always produces the same output, which is what makes a sorted list checkable by someone else.
Natural sort: why file10 used to beat file2
Plain alphabetical order is a character-by-character comparison. Comparing file10 with file2, the sorter reads f-i-l-e identically, then compares 1 with 2 — and 1 is smaller, so file10 wins. A human reads the same names and objects instantly, because a human reads 10 and 2 as numbers. That mismatch between lexicographic order and human order is the entire reason natural sort exists, and it appears everywhere computers name things: scanned documents, photo exports, software versions, legal exhibits, chapter files.
Natural sort fixes the comparison, not the data: whenever both lines contain a run of digits at the same position, those runs are compared by numeric value — leading zeros handled sensibly — and the rest of the comparison proceeds letter by letter as before. On this page natural sort is implemented with the browser's international collation in numeric mode, the same mechanism operating systems adopted for file managers. The test in the specification of this tool is the canonical one: file1, file10, file2 in plain order stays file1, file10, file2; in natural order it becomes file1, file2, file10. If your list contains numbers that are data rather than names — prices at the start of lines, quantities, years — think before choosing: natural order is right for identifiers, while a spreadsheet's numeric sort is right for values.
Case, articles and the filing rules behind them
Two options on this page encode conventions much older than computers. The first is case. Everyday alphabetical order ignores case: a reader filing “apple” does not expect it separated from “Apple”. Computer code-point order does the opposite, placing every capital letter before every lowercase one, so “Zebra” precedes “apple”. The default here follows the reader; the case-sensitive toggle follows the machine, for the minority of jobs — code identifiers, case-significant tags, matching another system's output — where machine order is the requirement.
The second convention is the leading article. Library filing rules have long instructed cataloguers to disregard an initial “The”, “A” or “An” when filing titles, so that The Beatles files at B, where a reader looks for it, rather than stranding it at T among thousands of other “The” titles. The Ignore leading The / A / An option applies exactly that rule to sorting only: the words remain printed in the output, untouched — only the position changes. Leave it off for lists where “The” is genuinely part of a sortable name or where a house style files literally; turn it on for bibliographies, film and music lists, and any catalogue a human will browse by the word they remember.
Accents sit in the same family of conventions. The collation used here places most accented Latin letters with their base letters, which matches general English-language filing. It does not implement every national convention — Swedish, for instance, files å, ä and ö after z — because the tool follows your browser's default locale rather than asking you to declare a filing language. For a list whose audience files by a specific national rule, verify the handful of affected entries by hand.
Cleaning a list: duplicates, blanks and stray spaces
Most real lists arrive dirty, and cleaning is half the value of a sorter. Duplicates creep in when lists are merged; blank lines creep in when paragraphs are copied; leading spaces creep in from PDFs, web pages and indented documents — and a leading space is not cosmetic to a sorter, because space sorts before every letter, dragging padded lines to the top as a mysterious block. The three cleaning options attack each fault in the same pass as the sort itself.
Remove duplicates keeps the first occurrence of each line and discards later repeats, comparing lines under the same case rule as the sort: with case-insensitive sorting, “Apple” and “apple” are one line for this purpose. Remove blank lines discards empty lines and, together with Trim whitespace, lines containing only spaces. Trim whitespace strips spaces and tabs from both ends of every line before comparison, which also makes duplicate detection more honest — “banana ” and “banana” become the same line once trimmed. The Lines Removed count is the audit trail: if you pasted 500 lines and 37 were removed, you know the shape of what was cleaned before you trust the output.
Sorting by length, reversing and shuffling
Length order answers a different question from alphabetical order: not “where does this belong?” but “how big is this?” Shortest-first surfaces fragments, abbreviations and suspiciously truncated entries; longest-first surfaces the entries most likely to overflow a label, a table cell, a form field or a social post. Ties — lines of equal length — are broken alphabetically, so the output is fully determined and two runs agree. Character count includes spaces inside the line and, after trimming, excludes the stray padding that would otherwise corrupt the measurement.
Reverse and Shuffle complete the set. Reverse is the only mode whose output depends on the input order rather than the content: it flips the list end for end. That is the right tool for undoing a sort you applied in the wrong direction elsewhere, for turning a countdown into a count-up, or for reading a log backwards. Shuffle discards order entirely, randomising positions with the browser's random generator. Use it to build a running order without favouritism, to randomise revision questions, or to break a pattern before sampling. Do not use it where randomness must be auditable — a prize draw deserves a witnessed, documented process, not a web page, and this page says so rather than overselling the mode.
Who alphabetizes lists, and why
Teachers alphabetize class rosters, reading groups and award lists, and need duplicates gone before a list is printed and pinned up. Librarians, booksellers and collectors alphabetize bibliographies and inventories, which is where the article rule stops being a curiosity and becomes the job. Administrators alphabetize attendee lists, sign-in sheets and name badges, where the cost of a mis-filed name is a queue at a desk. Developers and data workers alphabetize configuration entries, tag lists and file inventories, where natural sort prevents the file10 embarrassment in a shipped product. Writers alphabetize glossaries, indexes and reference lists — the back-of-book index is alphabetical order's oldest professional home. In every case the pattern is identical: the list was authored in the order things occurred to someone, and it will be used in the order a stranger needs to find them. Sorting is the translation between those two orders.
That is also why this tool sits alongside the Text Repeater, which repeats text with a separator you choose, and the Character Counter, which counts characters, words and lines without changing them. No standalone Word Counter tool exists on FreeSoftis at the time of writing, so word counts for a list are shown live on this page itself, and the Character Counter covers deeper counts. Count first, sort here, repeat or format afterwards: three small tools covering one ordinary workflow.
One more habit separates a reliable sorted list from a hopeful one: sort twice, from the original. If you paste the raw list, note the output count, then clear the page and repeat the paste with the same options, the two outputs must agree line for line — and with a deterministic mode they will. Disagreement means the input changed between runs, usually because a document was edited or a different selection was copied. That thirty-second check catches the most common real-world failure of all: not a bad sort, but sorting last week's version of the list and publishing it as current. Keep the raw paste until the sorted version is safely in its destination, and the check costs you nothing.
Common alphabetizing mistakes
Sorting before cleaning. Duplicates and blank lines sorted into a list look like sorting errors. Clean in the same pass and read the removed count.
Forgetting the numbers. A list of files, versions or chapters sorted plainly will mis-order every number above 9. If digits appear inside names, default to natural sort.
Filing titles under “The”. A bibliography sorted literally buries half its entries at T. The article option exists precisely for title lists.
Mixing sort keys. Half a list sorted by first name and half by surname is worse than either. Decide the key — surname first, if surnames are the key — and make every line follow it before sorting.
Retyping the output. Copy it. A retyped list reintroduces transpositions the sort had eliminated, invisibly.
Trusting shuffle for a draw. Random order for a playlist is a convenience; a draw with consequences needs an auditable process. The mode is honest about which one it is.
What this tool cannot do
This tool sorts whole lines by their beginning, under the options you set. It cannot sort by a middle column, a surname buried at the end of a line, or any key other than the line's own start — reformat lines so the key comes first, or use a spreadsheet for column sorting. It cannot understand meaning: it will not group synonyms, correct spellings, translate a list, or apply a specific national filing convention beyond your browser's locale collation. It cannot guarantee an order another program will reproduce exactly, because collation details vary slightly between browsers and systems. Its shuffle is a convenience randomiser, not a certified draw. And it does not store your list: close the tab without copying, and the work is gone — the same privacy property that keeps your text off every server. Used within those limits, it does the one job it claims, exactly and instantly: put a list in alphabetical order, or in any of the seven other orders defined above.
Sources and References
- MDN Web Docs — Intl.Collator: the browser collation this tool uses, including numeric (natural) sorting
- Unicode Technical Standard #10 — Unicode Collation Algorithm: how characters are weighted and ordered
- ECMAScript Language Specification — text processing and internationalisation, the basis of locale-aware comparison
- The Open Group / POSIX — the sort utility specification: the classic line-sorting contract
- National Information Standards Organization (NISO) — standards for information organisation, including filing and arrangement
- Alphabetical order — conventions, letter-by-letter versus word-by-word filing, and treatment of articles
- Natural sort order — why digit runs are compared as numbers, with the file2 / file10 example
Collation behaviour follows the Unicode Collation Algorithm as implemented by your browser; filing conventions for leading articles follow the long-standing library practice described in the sources above.