Online Text Line Sorter
Order lines alphabetically, numerically or by length, ascending or descending, with options for case sensitivity, trimming and dropping duplicates along the way. It updates the moment you change something and works entirely in your browser, so your text stays private.
- 100% free
- Private & safe
- Runs in your browser
Why use Text Sorter?
Text Sorter is a fast, distraction-free way to work with text: paste your content, transform it, and copy the result instantly.
- Runs instantly in your browser — nothing to install, nothing uploaded.
- Completely free, with no account, no watermarks and no usage limits.
- Handles Alphabetical (locale-aware); Numeric; By length.
- Paste your text, one item per line.
- Works on any device — desktop, tablet and phone — and is fully keyboard accessible.
How to use Text Sorter
- Paste your text, one item per line.
- Choose ascending or descending order.
- Toggle options: case sensitivity, numeric sort, sort by length, remove duplicates, trim.
- Copy or download the sorted result.
Examples
- Alphabetizing a list of names.
- Sorting a list of numbers from smallest to largest.
Supported formats & limits
- Alphabetical (locale-aware)
- Numeric
- By length
Limitations
- Numeric sort falls back to text order for non-numeric lines.
- Locale-aware sorting may differ from a strict byte comparison.
- Sorting reorders lines and does not merge them.
Frequently asked questions
Can it sort numbers correctly?
Yes. Enable numeric sort so 2 comes before 10 instead of after it.
Can I remove duplicates while sorting?
Yes, turn on 'Remove duplicates' to keep each unique line once.
Is my text uploaded?
No — sorting happens entirely in your browser.
Was this tool helpful?