Sort lines of text
Sort lines A–Z, Z–A or by length.
Runs on this devicePLAIN
Input
or drop a file below
Ctrl ↵ Add to workflow
More in Text
HTML Entities
Escape or unescape HTML entities.
Regex Tester
Test a JavaScript regular expression and list every match with its groups.
Text Diff
Compare two texts line by line. Separate them with a line containing only ===.
Case Converter
camelCase, snake_case, kebab-case, Title Case and more.
Slug Generator
Turn titles into clean URL slugs. One slug per line.
About Sort Lines
Paste a list and sort it A to Z, Z to A, or by line length. Numbers inside lines can be ordered numerically so item 2 comes before item 10. It runs on your device.
How to use Sort Lines
- Paste your lines.
- Choose to sort alphabetically or by length.
- Choose ascending or descending.
- Copy the sorted list.
Questions and answers
Can it sort numbers correctly?
Yes, the numeric option orders numbers by value, not by their first digit.
Can I remove duplicates as well?
Use the Remove Duplicate Lines tool afterwards.
Is the list uploaded?
No.