Line Sorter
Sort, reverse or shuffle a list of lines — alphabetically, numerically, by length, or at random.
More Text & Writing Tools
Shuffle is random, so it only runs when you click the button — not on every keystroke.
How to Use Line Sorter
Paste a list with one item per line and pick a sort mode: alphabetical (A→Z or Z→A), numerical (by a leading number in each line), by length, reversed, or randomly shuffled. Case-insensitive sorting and duplicate-line removal are optional toggles. Everything updates live as you type or change options, except Shuffle, which runs only when you click its button.
About Line Sorter
Details & Tips
Frequently Asked Questions
How does Numerical sort mode work if my lines don't start with a digit?
What happens to lines with no number in Numerical mode?
Why is case-insensitive sorting on by default?
Why doesn't Shuffle update live like the other modes?
Is the shuffle truly random, or biased toward certain orders?
What does "By length" sort by exactly?
Does removing duplicates happen before or after sorting?
Are duplicates matched case-insensitively too?
Does Reverse sort my list first?
Can I paste a list copied from Excel or Windows Notepad?
Is there a limit to how many lines I can sort?
Is my list uploaded to a server?
Part of These Collections
Also Available As
line sorter, sort lines alphabetically, sort text lines, alphabetize list online, shuffle lines, sort lines by number, remove duplicate lines
Explore More Tools
View all toolsMedian Calculator
Math
Water Intake Calculator
Health
Standard Deviation Calculator
Math
CSS Animation Generator
CSS
LCM Calculator (Least Common Multiple)
Math
Cron Expression Generator & Parser
Developer Tools
Pregnancy Due Date Calculator
Math
Image Format Converter
Image Tools
Found a Problem?
Let us know if something with Line Sorter isn't working as expected.
Thanks — we'll take a look.