Sort Lines
Sort lines alphabetically, numerically, by length, in reverse or shuffled.
Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.
How to use the sort lines
- Paste your lines.
- Choose the order, and whether to trim or ignore case.
- Copy or download the sorted list.
About this tool
Alphabetical sorting uses your locale's collation rules rather than raw character codes, which matters as soon as accents are involved: a code-point sort puts every accented word after Z, while a locale sort puts 'école' where a reader expects it.
Numeric sorting reads the leading number in each line, so '10. item' comes after '9. item' rather than before it. Shuffling uses the browser's cryptographic randomness, making it fair enough for draws and running orders.
Common uses
- Alphabetising a list of names.
- Ordering numbered items correctly.
- Randomising a running order.
Frequently asked questions
- Why is my numbered list in the wrong order alphabetically?
- Alphabetically, '10' sorts before '9' because it compares character by character. Choose numeric sorting instead.
- Does it handle accented characters properly?
- Yes. Sorting uses your locale's rules, so accented letters sit alongside their base letters rather than at the end.
Related tools
Remove Duplicate Lines
Remove repeated lines from a list, with options to sort, trim whitespace and ignore case.
Text Cleaner
Strip extra spaces, blank lines, line breaks, smart quotes and unwanted characters.
Find and Replace
Replace text across a whole document, with whole-word, case and regex options.
Extract Emails, URLs & More
Pull email addresses, links, numbers, hashtags, mentions, IPs or dates out of any text.