Number Sorter: Sort Smallest to Largest

A number sorter puts a list of numbers in order from the smallest to the largest, or from the largest to the smallest. Paste your numbers separated by spaces, commas, semicolons or new lines and the list is sorted at once. Decimals, negative numbers and scientific notation such as 1.5e3 all work, and the numbers keep the exact way you typed them. You can sort by value or by absolute value, remove duplicates, and choose how the sorted list is separated. Count, smallest, largest, sum, mean and median are shown below the list.

Number Sorter

Sort a list of numbers from least to greatest or greatest to least online. Remove duplicates, pick a separator and copy the list.

Everything runs in your browser. Nothing you type is sent to a server.

How to use the Number Sorter

  1. Paste or type your numbers. Use spaces, commas, semicolons or new lines between them.
  2. Choose ascending (least to greatest) or descending (greatest to least).
  3. Tick Remove duplicates if each value should appear once, and choose the output separator.
  4. Copy the sorted list or download it as a text file.

Features

  • Sort ascending, descending or by absolute value
  • Handles negatives, decimals and scientific notation
  • Remove duplicate values
  • Output separated by new lines, commas, spaces or semicolons
  • Count, min, max, sum, mean and median
  • Lists any entries that are not numbers

Frequently asked questions

How do I sort numbers from least to greatest?

Paste the numbers into the box and keep Ascending selected. The sorted list appears right away, with the smallest number first and the largest last.

Does it sort negative numbers and decimals correctly?

Yes. Numbers are compared by their real value, so -10 comes before -2 and 2.5 comes before 10. They are not sorted as text, which is why 10 does not come before 2.

What happens to text that is not a number?

It is left out of the sorted list and shown in a separate note, so you can see what was ignored.

Can I use thousands separators like 1,000?

Commas are treated as separators between numbers, so 1,000 would be read as 1 and 000. Type 1000 without the comma.

Is there a limit to how many numbers I can sort?

There is no fixed limit. Lists of hundreds of thousands of numbers sort in a moment on a modern device, and nothing is uploaded.