Sort Lines of Text Alphabetically or by Number
Sort lines A to Z, Z to A, by number or by length, or shuffle them randomly.
How to use Text Sorter
Step by step
Add your text
Type or paste it into the box.
Choose options
Pick the settings you need. The result updates as you go.
Copy or download
Copy the result or save it as a file.
Features and benefits
What you get
Live results
The result updates as you type or change an option.
Private
Your text is processed in your browser by this tool.
Copy or save
Copy to the clipboard or save as a file.
No sign-up
Open the page and start.
Supported formats and limitations
What to expect
Supported formats
Plain text
Size limits
Limited by browser memory
Limitations
Works on plain text. Very large inputs (several MB) can slow your browser.
Frequently asked questions
Quick answers
How does number sorting treat text?
Lines that do not start with a number count as 0.
Is sorting case sensitive?
Tick “ignore case” to sort without regard to capitals.
Related tools
More from Text Tools
Case Converter
Change text to uppercase, lowercase, title case, sentence case, camelCase, snake_case, kebab-case and more.
Text Formatter
Trim lines, remove empty lines, collapse spaces, number lines and add a prefix, suffix or separator to every line.
Remove Duplicate Lines
Delete repeated lines and keep the first occurrence of each. Options to ignore case and trim spaces.
Related guides
Read more about this tool