Sort Lines Alphabetically
Sort a list A to Z, Z to A, by length or numerically. Free, private and instant.
How to use the Sort Lines Alphabetically
- Paste your list with one item on each line.
- Choose the sort order. Ignore case and Remove empty lines are on by default.
- The sorted list appears as you change anything, with Copy and Download .txt buttons.
Example
Worked example (fictional list, run through this tool)
- Input lines: pear, Apple, banana, an empty line, apple, 10, 9
- A to Z: 10, 9, Apple, apple, banana, pear
- Why 10 comes before 9: A to Z compares text one character at a time, so 1 sorts before 9. Use Numeric for number order
Limitations
- Alphabetical sorting is by text, so numbers are not in numeric order unless you choose a numeric option.
- With Ignore case on, Apple and apple count as equal and keep their original order.
- Shuffle gives a different order each run.
About this tool
Sort any list of lines alphabetically, in reverse, by line length or by number. Optionally ignore case and drop empty lines.
Sort Lines Alphabetically is part of ToolStack Hub's Text Tools. It runs entirely in your browser, which keeps your data private and makes results instant. There is nothing to install and no account to create. There is no usage limit.
Frequently asked questions
Is the Sort Lines Alphabetically free?
Yes. Sort Lines Alphabetically is completely free with no sign-up, limits or watermarks.
Is my data private when I use the Sort Lines Alphabetically?
Yes. It runs in your browser, so your input is not uploaded to our servers.
Does it work on mobile?
Yes. ToolStack Hub tools work on phones, tablets and desktop browsers.
Keep going
Need this automated for your business?
Vantalume builds custom AI and web automation workflows so your team can stop doing repetitive work.