Sort Text Lines Online
Sort lines alphabetically, numerically, by length, or shuffle randomly. Optionally remove duplicates and empty lines.
Input
Sorted Output
FAQ
What sort orders are available?
Alphabetical (A-Z and Z-A), numeric (ascending and descending), by line length (shortest/longest first), and random shuffle.
Can I remove duplicates while sorting?
Yes. Check 'Remove duplicates' to keep only unique lines in the sorted output.
Is the sort case-sensitive?
By default no. Check 'Case sensitive' to make uppercase letters sort before lowercase.
How does numeric sort work?
Lines are sorted by the first number found in each line. Lines without numbers are treated as zero.
More Developer Tools You May Like
JSON Formatter
Format, beautify, minify and validate JSON with syntax highlighting.
CSS Minifier
Minify CSS to reduce file size or beautify minified CSS.
Text Case Converter
Convert text between camelCase, snake_case, kebab-case, and more.
Password Generator
Generate strong, random, cryptographically secure passwords.