Sort Text Lines Alphabetically & Numerically
Sort lines A–Z, numerically, by length, reverse or shuffle them.
Paste a list and sort the lines instantly: alphabetically (A–Z or Z–A), numerically, by length, in reverse, or shuffled randomly. Toggle case sensitivity, remove duplicate lines and strip empty lines in the same pass. Great for cleaning lists, keywords, names, CSV columns and any line-separated data — all in your browser.
How to use the Sort Text Lines
- Paste your line-separated list into the box.
- Pick a sort order: A–Z, numeric, by length, reverse or shuffle.
- Optionally remove duplicates or empty lines, then copy the result.
Frequently asked questions
Can it sort numbers correctly?
Yes. The numeric sort reads the first number on each line, so '10' comes after '9' instead of before it as a plain text sort would do.
Does it remove duplicates while sorting?
If you enable 'Remove duplicates', repeated lines are dropped (respecting the case-sensitivity setting) before the result is shown.
Is the random shuffle truly random?
It uses a Fisher–Yates shuffle, which gives an unbiased random order. Click Shuffle again to re-roll.