Text Tools
Line Sorter
Sort any list of lines alphabetically, numerically, by length, in reverse, or shuffled randomly — with optional deduplication.
Sorting runs locally — no data is uploaded.
Sorting Is Not Just Alphabetical
Plain sort compares code points, which puts every uppercase letter before any lowercase one ("Zebra" before "apple") and digits before letters. Case-insensitive or locale-aware ordering fixes that for human-readable lists. The other trap is numbers: as text, "10" sorts before "9" — numeric mode compares values instead. For mixed lists (SKU codes, file names with version numbers) natural sort, which treats embedded digit runs as numbers, gives the order people expect.
How the Transformation Works
- Paste your list into the input area, one entry per line.
- Pick a sort mode: A-Z, Z-A, numeric (handles 2 before 10), by line length, reverse, or random shuffle.
- Enable case-insensitive ordering or deduplication if you need a cleaner list.
- Copy the sorted result or download it as a .txt file.
Example Input & Output
Common Questions
How does numeric sorting differ from alphabetical?
Alphabetical sorting compares characters one by one, so "10" sorts before "2". Numeric sorting converts each line to a number and compares values.
Can I sort and deduplicate at once?
Yes. Enable the remove duplicates option and duplicates disappear during the same operation.
Related Text Tools
Remove Duplicate Lines
Strip duplicate lines from any list or text with optional case-insensitive comparison, whitespace trimming, and sorting.
Text Case Converter
Convert any text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case in one click.
Word & Character Counter
Live counts of words, characters (with and without spaces), lines, sentences, and paragraphs, plus an estimated reading time.