Text Sorter
Sort lines of text alphabetically, numerically, by length, or in reverse, for free.
How to use
- 1Paste lines of text, one per line.
- 2Choose a sort mode and options.
- 3Copy or download the sorted result.
Features
- Alphabetical, numeric or length sorting
- Ascending or descending order
- Optional duplicate removal
Supported formats
Privacy
Your text is sorted locally in your browser and is never sent to our server.
About this tool
The Text Sorter arranges lines of text alphabetically, numerically, or by line length, in ascending or descending order. It is useful for organizing lists, spreadsheet columns pasted as text, or log data.
Frequently asked questions
Can I sort numbers correctly, not just alphabetically?
Yes, choose 'Numeric' to sort lines by their numeric value rather than as text (so 2 comes before 10).
Can I remove duplicate lines while sorting?
Yes, enable 'Remove duplicates' to drop repeated lines from the sorted result.
Is my text sent to a server?
No, sorting happens entirely in your browser.
Related tools
Remove Duplicate Lines
Remove duplicate lines from a list or block of text, instantly and locally.
Remove Extra Spaces
Remove extra spaces, tabs and blank lines from text online for free.
Word Counter
Count words, characters, sentences and paragraphs, plus reading time, as you type.
Character Counter
Count characters, with and without spaces, for any block of text instantly.