How to Sort Lines of Text Alphabetically or Numerically
Published September 20, 2026 · 2 min read
Sorting a pasted list — names, numbers, file paths — by hand is tedious past a handful of lines. This tool sorts your lines instantly, whether they're words, numbers, or a mix.
Try Text SorterSteps
- 1
Open the Text Sorter tool
Go to the text sorter.
- 2
Paste your lines
Paste the list you want sorted, one item per line.
- 3
Choose a sort order
Pick alphabetical or numerical, ascending or descending.
- 4
Copy the sorted result
Use the ordered list wherever you need it.
Frequently asked questions
Yes — numeric sort mode compares values as actual numbers, so 2 correctly sorts before 10 rather than after it, as a plain alphabetical sort would place them.
Yes — sorting is applied consistently regardless of capitalization differences between lines.
For deduplication specifically, use the Remove Duplicate Lines tool; this tool is focused purely on ordering.
Because sorting happens instantly, this handles lists of any length without the tedium of manually reordering them.

