Sort lines alphabetically, numerically, by length, or shuffle randomly
Runs locally · Nothing uploaded
An online text sorter that orders lines alphabetically, numerically, by length or randomly. It is useful for tidying a column copied from Excel, sorting IDs, grouping keywords alphabetically or shuffling a prize draw list. You can ignore empty lines and deduplicate before sorting, and the result updates in real time. Copy it or download it as a txt file — everything runs locally in your browser.
It reads the leading number on each line (whatever parseFloat can parse), so “10 items” and “2 items” sort as 2 then 10. Lines without a leading number are treated as 0, so pure number lists give the most predictable result.
Yes. Alphabetical sorting uses the browser localeCompare, so Chinese follows local language rules and mixed content gets a stable order.
Not by default. Duplicates are only merged when you enable dedupe; shuffling never removes any line.
No. Each shuffle produces a new order, which is useful for draws and sampling. Use a fixed sort mode when you need a reproducible order.
Tens of thousands of lines are usually smooth, depending on your device. For very large text, split it into chunks to keep browser memory usage reasonable.