Text Sorter
Sort lines of text alphabetically, numerically, by length, or randomly — runs 100% in your browser, nothing is uploaded.
🔒 Sorted in your browser — nothing is uploaded.
Sort any list of lines your way
Paste one item per line and instantly reorder the whole list. Choose alphabetical for A → Z, numeric to sort by the leading number in each line (so 2 comes before 10, unlike a plain text sort), by length to order from shortest to longest, or random to shuffle everything. Toggle case-insensitive matching, reverse the final order, remove duplicate lines, and trim leading/trailing spaces — all combine freely and the output updates live as you type.
Deterministic sorting, unbiased shuffle
Alphabetical, numeric, and length sorts are stable, so lines that compare equal keep their original relative order. Non-numeric lines are pushed to the end in numeric mode instead of being dropped. The random option uses your browser's cryptographic generator (crypto.getRandomValues) with a Fisher–Yates shuffle for a fair, uniform ordering. Your text is never modified in place and never leaves your device — the result is one click away from your clipboard.
Frequently asked questions
How does numeric sorting decide the order?
It reads the number at the start of each line — so "2 apples" sorts before "10 apples" — and lines that don't begin with a number are kept and moved to the end.
Is anything I paste uploaded to a server?
No. Every sort and shuffle happens entirely in your browser and your text never leaves your device — nothing is uploaded or stored.
What do the case-insensitive and remove-duplicates toggles do?
Case-insensitive makes alphabetical sorting and duplicate detection ignore letter case, and remove-duplicates keeps only the first occurrence of each identical line.