Sort Text Lines Tool
Sort lines of text online for free — alphabetically, numerically or by length, with dedupe and blank-strip. 100% in your browser.
100% private — runs entirely in your browser. Your text is never uploaded or logged.
Natural/numeric sort keeps “item2” before “item10”. Sorted locally in your browser — nothing is uploaded.
How to use the Sort Text Lines Tool
- Paste your lines.
- Choose an order (A→Z, numeric, length…).
- Optionally dedupe and strip blanks.
- Copy the sorted lines.
What you can use it for
- Alphabetise a list of names or keywords
- Sort numbers correctly with natural sort
- Sort and de-duplicate in one step
- Tidy up any line-based list
More free tools
Cleaning up text?
Sort, dedupe, reflow and find-and-replace with our free text utilities — all in your browser.
Browse all free text tools →Frequently asked questions
Can I sort and remove duplicates at once?
Yes — enable 'remove duplicates' along with your chosen sort order.
Does it sort case-sensitively?
By default it's case-insensitive; untick the option for case-sensitive sorting.
How do I sort numbers correctly?
Use the numeric option (or the natural sort), so 'item2' comes before 'item10' instead of after it.
Can I reverse the order?
Yes — pick Z→A, or 'reverse as-is' to flip the current order without sorting.
Will it keep or strip blank lines?
You choose — 'strip blank lines' is on by default but can be turned off.