Sort Numbers sorts the numbers in your text in ascending order, descending order or randomly. Paste your numbers, click the button and copy the sorted list. It is free and runs in your browser.
Sort order: Ascending
10 2 33 1
1 2 10 33
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
This tool sorts the numbers in your text by their value, from small to large, from large to small, or in a random order. The sorted numbers are put on one line each.
Separate your numbers with new lines, spaces, commas or semicolons. Negative numbers and decimals are sorted by value, so 2 comes before 10. Each number is returned as you wrote it, and anything that is not a number is ignored.
Use it to put scores, prices, measurements or IDs in order, to find the smallest and largest value, or to mix numbers into a random order.
Each example shows your numbers before and after sorting. The random example shows one possible result.
| Case | Before | After |
|---|---|---|
| Ascending (small to large) | 10 2 33 1 | 1 2 10 33 |
| Descending (large to small) | 10 2 33 1 | 33 10 2 1 |
| Decimals and negative numbers | 3.5 -2 0.75 10 | -2 0.75 3.5 10 |
| Commas and spaces between numbers | 5, 3, 9 1 | 1 3 5 9 |
| Words are ignored | apple 4 2 pears | 2 4 |
| Numbers are kept as written | 007 7.50 2 | 2 007 7.50 |
| Random (one possible result) | 1 2 3 4 | 3 1 4 2 |
Putting scores, prices, measurements and IDs in order, finding the smallest and largest value, and mixing numbers into a random order.
Numbers are split at new lines, spaces, commas and semicolons, so a number written like 1,000 is read as 1 and 000. Words and other text are ignored. Repeated numbers are kept. The result replaces your text, so use Undo if you need the original.
To sort words A to Z try Alphabetical Sort. To pull the numbers out of a text first try Extract Numbers From Text. To remove repeated lines try Remove Duplicate Lines.
It sorts the numbers in your text from small to large (ascending), from large to small (descending), or in a random order. Each number is put on its own line.
Paste your numbers, choose the Sort order, then click Sort Numbers. The sorted numbers replace the text in the box. Click Copy to use them, or Undo to go back.
Put them on separate lines, or separate them with spaces, commas or semicolons. The tool splits your text at those places, so 5, 3, 9 1 gives four numbers.
By value. So 2 comes before 10, which an alphabetical sort would not do. Negative numbers and decimals are sorted by value too, for example -2 comes before 0.75.
Yes. Choose Random as the Sort order and every click gives a new random order.
Anything that is not a number is ignored, and the message tells you how many pieces were ignored. Only plain numbers such as 12, -3, +4 and 2.5 are used.
No. Each number is returned as you wrote it, so 007 and 7.50 stay the same. Only the order changes.
No. A number that appears twice is kept twice. To remove repeated lines use Remove Duplicate Lines.
Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.
Last updated: 10 November 2026