Number Sorter

Sort numbers numerically in ascending or descending order.

0 chars
0 words
0 lines
0 chars
0 words
0 lines

Number Sorter – Sort Numbers Online

Paste a list of numbers and sort them numerically in ascending or descending order. The sorter finds every number in your text, whether it is separated by commas, spaces, semicolons, tabs, or line breaks, so you can paste a column from Excel, a CSV row, or a JSON array without cleaning it first.

Numeric sorting vs. text sorting

Ordinary text sorting compares characters one by one, which puts 100 before 20 and 9 after 1000. That is almost never what you want for numbers. This tool compares the actual numeric values, so 2, 9, 20, 100, 1000 come out in the right order. Negative numbers, decimals like 19.5 or .25, and scientific notation such as 3e3 (3000) are all recognised.

Features

  • Ascending or descending order.
  • Remove duplicates – keep only the first occurrence of each value (7 and 7.0 count as the same value).
  • Output separator – one number per line, comma separated, comma + space, space, or semicolon.
  • Statistics – count, minimum, maximum, sum, mean, and median of your list are shown under the result.
  • Open File – load a .txt or .csv file directly.

How numbers are detected

A number is a run of digits with an optional decimal point, an optional exponent, and an optional sign. A minus sign counts only when it is not directly attached to a previous number, so ranges like 1-2 are read as 1 and 2 rather than 1 and −2. Thousands separators are not supported because a comma also separates list items; remove them first if your data contains values like 1,000.

Common uses

Sort exam scores or prices, find the highest and lowest value in a data set, prepare lists for charts, check for duplicate IDs, or quickly calculate a median without opening a spreadsheet. Everything runs in your browser, so the data never leaves your computer.

Need to sort words or lines instead? Use the Line Sorter. To create a list of consecutive numbers, try the Integer Range Generator.

Frequently Asked Questions

Because they sort alphabetically, comparing the first character '1' with '2'. This tool sorts by numeric value, so 20 correctly comes before 100.

Any non-numeric characters work as separators: commas, spaces, tabs, semicolons, pipes, or new lines. You can even paste numbers mixed with text – only the numbers are extracted.

Yes. Values such as -12.5, 0.25, .5, and 3e3 are recognised and sorted by their numeric value.

Turn on 'Remove duplicates'. The sorted output then contains each value only once, and the statistics still describe the full input list.