Sort Lines
Text toolNewSort lines alphabetically, numerically or reversed.
This tool runs entirely in your browser. Your files never leave your device — nothing is uploaded.
Lines to sort
So "10" sorts after "2".
Treat A and a as equal.
Add some lines above to see them sorted here.
Frequently asked questions
How do I sort a list of lines alphabetically or numerically?
Paste your text with one item per line, then choose Ascending or Descending order. Toggle 'Sort numerically' to compare lines as numbers so '10' lands after '2' instead of before it, and the sorted result appears instantly below ready to copy.
Is my text uploaded to a server?
No. All sorting runs entirely in your browser using local JavaScript, so your text never leaves your device and nothing is sent to any server. That makes it safe for sensitive lists, private notes, or confidential data, and it keeps working even offline.
What does the Reverse option do, and how is case handling controlled?
Reverse simply flips the existing line order without sorting, which is handy for un-doing a sort or inverting a sequence. Enable 'Ignore case' to treat uppercase and lowercase letters as equal during ascending or descending sorts; otherwise comparison is locale-aware and case-sensitive.