Sort Lines
Sort lines of text alphabetically, numerically, or by length. Free, no signup, works in your browser.
Sorted output will appear here…All sorting happens in your browser. No data is sent to any server.
About Sort Lines
This tool sorts lines of text in various ways: alphabetically (A–Z or Z–A), by line length (shortest or longest first), numerically (parsing leading numbers), reverse order, or random shuffle. Options include trimming whitespace from each line and removing empty lines before sorting. Useful for organizing lists, sorting names or URLs, ordering log entries, randomizing quiz questions, and cleaning up any line-separated data.
Frequently Asked Questions
How does numeric sort work?
What is the difference between Reverse and Z→A?
Can I sort and remove duplicates at the same time?
Related Tools
Case Converter
Convert text between uppercase, lowercase, title case, and more
Character Counter
Count characters, words, sentences, and paragraphs in your text
Remove Line Breaks
Strip line breaks and clean up text formatting
Duplicate Line Remover
Remove duplicate lines from text
Line Counter
Count lines, words, and characters in any text
Text Repeater
Repeat any text or string multiple times