Text Sorter
Sort lines of text online for free — A to Z, numeric, by length, or natural sort. Case sensitive options, remove duplicates or empty lines — nothing uploaded.
Your files are processed locally in your browser and are not uploaded to our servers.
How to use Text Sorter
- 1
Paste your list into the box, one item per line.
- 2
Choose a sort order — A→Z, Z→A, numeric, by length, or natural sort.
- 3
Adjust case sensitivity and whether to trim, remove empty lines, or remove duplicates first.
- 4
Copy or download the sorted result, or Reset to start over.
Common uses
- Alphabetizing a list of names, tags, or references
- Sorting a list of numbers or scores without opening a spreadsheet
- Putting filenames like "item2" before "item10" in the order people actually expect (natural sort)
Supported formats and limitations
Accepts text, up to one file at a time.
- Numeric sort reads each line as a number — a line that isn't a valid number is sorted to the end, regardless of ascending or descending order.
- "Natural sort" handles embedded numbers the way a person would ("item2" before "item10"), which plain alphabetical order gets wrong ("item10" before "item2").
Frequently asked questions
No. Sorting happens entirely in your browser.
A sort order that reads embedded numbers as numbers rather than character-by-character — so "item2" correctly sorts before "item10", which plain alphabetical sorting gets wrong.
They're placed at the end, since they have no valid numeric value to sort by, regardless of ascending or descending order.
Yes — both are optional toggles applied before sorting, so the result is deduplicated and/or has no blank lines.
By default no (ignoring case), but you can turn on "Case sensitive" if you need strict, case-aware ordering.