Sort Lines
Sort lines alphabetically.
Loading tool…
About Sort Lines
Sort Lines takes any list you paste in and instantly reorders it. Sort alphabetically A→Z or Z→A, sort numerically ascending or descending, reverse the current order, or shuffle every line into a random order. Toggle case-insensitive sorting, trim whitespace from each line, and remove blank lines, then copy the clean result with one click.
It is completely free with no sign-up, no limits, and no watermarks. Everything happens right in your browser using JavaScript, so your text is never uploaded to a server. Your lists stay private on your own device, and the tool keeps working even offline once the page has loaded.
Frequently asked questions
- Is the line sorter free to use?
- Yes, it is completely free with no account, no sign-up, and no usage limits. You can sort as many lists as you like, as often as you like.
- Is my data uploaded or stored anywhere?
- No. All sorting, reversing, and shuffling happens locally in your browser using JavaScript. Your text never leaves your device and is never sent to or stored on any server.
- How does numeric sorting work?
- Numeric sort reads the number at the start of each line and orders lines by their value, so 2 comes before 10 (unlike alphabetical sorting). Lines that don't start with a number are kept in their original order at the end of the list.
- What does the case-insensitive option do?
- When enabled, uppercase and lowercase letters are treated the same during alphabetical sorting, so 'apple' and 'Apple' sort together instead of grouping all capitalized words separately.
- Can I remove blank lines and extra spaces while sorting?
- Yes. Turn on 'Trim whitespace' to strip leading and trailing spaces from every line, and 'Remove blank lines' to drop any empty lines. Both options apply before the list is sorted.
- How is the shuffle random?
- Shuffle uses a Fisher–Yates algorithm powered by your browser's cryptographic random number generator, giving a genuinely unbiased random order. Click Shuffle again to reshuffle the same list.