Text Sorter (A–Z / Z–A)
Paste a list, one item per line, and sort it alphabetically, numerically, or in reverse order with one click.
How to Use This Tool
Paste your list
One item per line — names, keywords, numbers, anything.
Choose your sort options
Toggle case-insensitivity and duplicate removal as needed.
Click a sort button
A→Z, Z→A, or numeric, based on what your list contains.
Copy the sorted result
Grab the ordered list ready to use.
About the Text Sorter
Sorting a list manually is manageable for a handful of items but becomes error-prone and tedious for anything longer — a list of client names, product SKUs, keywords, or any other collection that needs to be in a predictable order for readability or further processing.
This tool sorts your pasted list (one item per line) either alphabetically in ascending (A to Z) or descending (Z to A) order, or numerically for lists where each line is a number, since standard alphabetical sorting would incorrectly order numbers as text (placing "10" before "2", for example).
Two additional options refine the sort: case-insensitive sorting (so "apple" and "Apple" are treated equally rather than being separated by case), and an option to remove duplicate lines as part of the same operation, combining two common list-cleanup tasks into one step.
Frequently Asked Questions
What's the difference between alphabetical sort and numeric sort?
Alphabetical sort treats every line as text, which means numbers get ordered character-by-character (so "10" sorts before "2", since "1" comes before "2" as a character). Numeric sort specifically parses each line as a number and orders them by actual numeric value instead.
What happens with case-insensitive sorting turned off?
With it off, sorting becomes case-sensitive, and since uppercase letters sort before lowercase letters in standard character ordering, all-caps entries would cluster before lowercase ones rather than being interleaved naturally alongside similarly-spelled lowercase entries.
Can I sort a list and remove duplicates at the same time?
Yes — check the "Remove duplicates while sorting" option before clicking a sort button, and the result will be both sorted and deduplicated in a single operation, rather than needing to run two separate tools.
What happens if my list mixes numbers and text, and I use numeric sort?
Lines that can't be parsed as valid numbers will be treated as having no defined numeric value and will generally sort to one end of the list — numeric sort works best on lists where every line is purely a number.
Does sorting affect the content of each line, or just their order?
Only the order changes — the actual text content of each line stays completely unchanged. Sorting simply rearranges which line appears in which position relative to the others.
Is my list uploaded to a server when I sort it?
No — sorting happens entirely in your browser using JavaScript's built-in sort methods. Your list is never sent anywhere.
More Text Tools
ToolSessions — Free tools, forever. No sign-up required.
