Line Sorter
Sort lines of text alphabetically, numerically, reverse or shuffle them — with optional de-duplication.
Sort lines of text in seconds
The Line Sorter arranges a list of lines however you need — alphabetically (A–Z or Z–A), numerically, in reverse, or randomly shuffled — and can remove duplicates at the same time. Paste your list, pick a mode, and copy the sorted result. It runs entirely in your browser.
Sorting modes
| Mode | Use |
|---|---|
| A → Z / Z → A | Alphabetical order, ascending or descending |
| Numeric ↑ / ↓ | Sort lines as numbers |
| Reverse | Flip the current order |
| Shuffle | Randomize the order |
How to use it
- Paste your lines.
- Choose a sorting mode.
- Optionally remove duplicates, then copy the result.
Alphabetical vs numeric sorting
This distinction trips people up. Alphabetical sorting treats lines as text, so "10" comes before "2" (because "1" sorts before "2"). Numeric sorting reads each line as a number, so 2 correctly comes before 10. Pick numeric mode whenever your lines are numbers — prices, IDs, scores — to get the order you actually expect.
Common uses
- Alphabetizing names, terms, or a glossary.
- Ordering a list of items or tasks.
- Sorting and de-duplicating data before import.
- Randomizing a list for fair ordering or sampling.
Remove duplicates while sorting
The de-duplicate option removes repeated lines as it sorts, giving you a clean, unique, ordered list in one step. This is handy for tidying up lists pasted from multiple sources, where the same entry often appears more than once.
Private and free
All sorting happens in your browser — your list is never uploaded. The tool is completely free with no limits.
Frequently asked questions
Can it sort numbers correctly?
Yes. Use a numeric mode so 2 comes before 10 — alphabetical sorting would put 10 before 2.
Can it remove duplicates?
Yes. Enable 'remove duplicates' to get a clean, unique sorted list in one step.
Does it support reverse and shuffle?
Yes. You can reverse the current order or randomly shuffle the lines.
Is my list private?
Yes. Everything runs in your browser and nothing is uploaded.