Text Sorter
Sort lists alphabetically, numerically or by length, or shuffle them randomly — with optional duplicate removal.
Loading tool…
Need help with this tool or found a problem? WhatsApp support Email
What does the Text Sorter do?
Alphabetical sorting uses natural order, so “item 2” comes before “item 10” — unlike basic sorts that put 10 first. Numeric sorting reads the first number in each line, which works for prices, scores and quantities.
Items can be separated by new lines, commas or spaces. Random shuffle uses a secure random generator for fair ordering — useful for draws or randomising quiz questions.
How to use the Text Sorter
- Paste your items.
- Choose a sort order and how items are separated.
- Optionally ignore case, remove duplicates and remove empty items.
- Copy or download the sorted list.
Examples
Natural order
“file 10, file 2, file 1” → A→Z → “file 1, file 2, file 10”.
Fair shuffle
Paste 30 student names and choose Random shuffle to set a presentation order.
Common use cases
- Alphabetising names, keywords and references
- Ranking scores or prices
- Randomising lists fairly
- Tidying CSV columns
Features and benefits
- Private by design — your data is processed on your device and never uploaded.
- Free with no account, no watermark and no usage limits.
- Works on phones, tablets and desktops in any modern browser.
Limitations to know
- Lines without numbers are placed at the end in numeric sorts.
Frequently asked questions
Is the sort case-sensitive?
Not by default — “apple” and “Apple” sort together. Untick “Ignore case” for strict ordering.
How random is the shuffle?
It uses the Fisher–Yates algorithm with the browser’s cryptographically secure random generator.
Can I sort comma-separated values?
Yes — set “Items separated by” to Commas.
Related tools
All text toolsRemove Duplicate Lines
Delete repeated lines from lists while keeping the original order.
Line Counter
Count total, non-empty and unique lines in any text.
Random Number Generator
Pick random numbers in a range, with or without repeats.
Utility ToolsText Reverser
Reverse text by characters, words or lines.
Text Diff Checker
Compare two texts and highlight added and removed lines or words.
Word Counter
Count words, characters, sentences and paragraphs as you type.