Sort Numbers
Paste numbers separated by new lines, spaces or commas and sort them numerically, ascending or descending.
- Runs in your browser
- Free to use
About this tool
Sort Numbers orders any list of integers or decimals by numeric value, not by their characters, and shows the smallest and largest values with the count. Duplicates can be dropped and the result can be emitted one per line or as a comma-separated list ready for a spreadsheet or a script.
Need the total or the average as well? Use Sum a List of Numbers.
How to use it — quick steps
- 01
Enter the numbers
Type or paste the numbers in the field above, for example 42, one item per line. Nothing is uploaded.
- 02
Adjust the options
Pick the settings that fit your case; the defaults work for most people. Changes apply instantly.
- 03
Press "Sort numbers"
Press "Sort numbers" or Ctrl + Enter. The result appears below in an instant. Results can be copied.
Key features of this tool
Nothing leaves your browser
The processing is plain JavaScript that runs on your device: the text you paste is never uploaded to our servers or to anyone else.
Instant results
Results appear the moment you press the button, even for long inputs, and every block has copy and download actions.
Works everywhere
No installation, no account and no limits: the tool works on desktop and mobile, in any modern browser, as often as you like.
Frequently asked questions
Why not use a text sorter?
Text sorting compares characters, so 10 comes before 9. This tool compares numeric values, including decimals and negatives.
Which separators are accepted?
New lines, spaces, commas and semicolons; a decimal comma is accepted as a decimal point.
Are my files or data uploaded?
No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.