Sort lines of text alphabetically, numerically or by length, with options to trim, deduplicate blanks and ignore case.
How to use the Sort Lines
Paste your list with one item per line.
Choose how to sort: alphabetically, numerically, by length or reversed.
Toggle trim, remove empties or ignore case, then copy the result.
Frequently asked questions
Each line is sorted by the number at its start, so 2 comes before 10. Lines without a leading number are placed at the bottom.
It sorts letters without regard to capitalisation, so apple and Apple sit together instead of all capitals coming first.
It can drop empty lines, and you can pair it with the remove duplicate lines tool to also strip repeated entries before or after sorting.
A line sorter that orders a list alphabetically, numerically or by length, ascending or descending, and can simply reverse the current order.
Options to trim whitespace, drop blank lines and ignore case make it quick to tidy up lists, logs and exports.
Related tools
Convert text between UPPERCASE, lowercase, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case.
Count words, characters, lines and sentences in any text.
Compare two texts and highlight the added and removed lines, instantly and in your browser.
Generate placeholder text by paragraphs, sentences or words, with one click.
We use essential cookies to run the site. With your consent we also load Google AdSense, which sets advertising cookies. See our privacy policy.