Content Cleanup
Sort Lines Alphabetically Online: A–Z, Z–A, Length or Shuffle
Sort any pasted list alphabetically, in reverse, by line length, or shuffle it randomly. Runs instantly in your browser.
Runs in your browser — your text is never uploaded or stored.
Quick answer
Sort Lines is a free online tool that sort any pasted list alphabetically, in reverse, by line length, or shuffle it randomly. Runs instantly in your browser.
- Cost: free, no signup or limits.
- Privacy: runs 100% in your browser; text is never uploaded.
- Works on: desktop and mobile browsers, offline once loaded.
- Category: Content Cleanup.
Output
Common conversions
How to Use
- 1.Paste the lines you want to sort into the input.
- 2.Choose a mode: A–Z, Z–A, by length or shuffle.
- 3.Copy the sorted list from the output.
Advertisement
FAQ
Is the sort case-sensitive?
It uses locale-aware comparison, so uppercase and lowercase sort together naturally.
How does 'by length' sort ties?
Lines of equal length keep their original relative order (stable sort).
Can I reverse the sort?
Yes — pick Z–A for reverse alphabetical order.
Related tools
Remove Duplicate Lines
Paste any list to instantly remove duplicate lines with an optional case-insensitive mode. Free, private and runs 100% in your browser.
Word Frequency Counter
Count how often each word appears in any block of text. See totals, unique words and a sorted table — free, private and browser-based.
Add Line Numbers
Prefix every line of text with a sequential number. Customize the starting number and separator. Free, private and instant.
Comma Separator
Free online comma separator. Turn a vertical list of emails, IDs, or keywords into a single comma-separated line. Browser-based.