Skip to content
Tezmy Tools

Sort Numbers

Sort a list of numbers from smallest to largest, remove duplicates and see the stats

Separate numbers with commas, spaces or new lines. Decimals, minus signs and 1e3 style numbers work.

Runs in your browser. Nothing is uploaded.

About the Sort Numbers

Sorting numbers as text puts 100 before 20 because it compares character by character. This number sorter treats each item as a real number, so 2, 10 and 100 come out in the right order, including decimals, negative numbers and scientific notation like 1e3. Paste numbers separated by commas, spaces or new lines, choose smallest first or largest first, and optionally remove duplicates. It also shows the count, sum, average, median, smallest and largest, and lets you show the result one per line or separated by commas or spaces. Items that are not numbers are skipped, with a note about what was ignored.

Updated October 2026

How to use the Sort Numbers

  1. 1Paste or type your numbers, separated by commas, spaces or new lines.
  2. 2Choose smallest first or largest first.
  3. 3Tick Remove duplicate numbers if you want each value once.
  4. 4Choose how to show the result: one per line, commas or spaces.
  5. 5Copy the sorted list, or download it as a text file.

Uses

  • Order scores, prices, ages or measurements
  • Find the smallest and largest value in a pasted list
  • Clean and sort a column copied from a spreadsheet
  • Put page numbers or IDs in order
  • Check for duplicates in a list of numbers

Tips for pasted data

A column copied from a spreadsheet arrives with one number per line, which works directly. If your numbers use a comma as a decimal point, as in 3,5, replace it with a dot first, because commas separate items here. Remove currency symbols and units such as $ or kg, or those items will be skipped.

Related tools

Sorting is also the first step in finding a median or a percentile, spotting outliers at either end and checking a list for gaps. After sorting, scan the smallest and largest values for typing mistakes such as an extra zero. The Average Calculator and Standard Deviation Calculator go deeper into statistics, Sort Lines sorts words alphabetically, Remove Duplicate Lines cleans lists of any text, the Text Splitter breaks text into pieces and the Random Number Generator makes numbers to sort.

Features

  • True numeric sorting, not alphabetical
  • Ascending and descending order
  • Decimals, negatives and scientific notation
  • Remove duplicates
  • Count, sum, average, median, smallest and largest
  • Skips and reports text that isn't a number
  • Runs in your browser

Frequently asked questions

Why does a normal sort put 100 before 20?

Text sorting compares one character at a time, so 100 starts with 1, which comes before 2. A numeric sort compares the actual values, so 20 comes before 100. This tool sorts by value.

How do I sort numbers from largest to smallest?

Choose Largest first under Order. The same numbers are shown in descending order, so 100, 33, 10, 7, 2. Switch back to Smallest first to see them ascending.

How do I remove duplicate numbers?

Tick Remove duplicate numbers. Each distinct value appears once in the sorted list. The statistics are still worked out on all the numbers you entered, and they tell you how many duplicates there were.

What formats of numbers does it understand?

Whole numbers, decimals such as 3.14, negatives such as -4.5 and scientific notation such as 1e3. Separate them with commas, spaces, semicolons or new lines. Numbers with thousands separators like 1,234 would be read as two numbers, so remove those commas first.

What does it do with text in the list?

Anything that is not a number is skipped, and a note tells you which items were ignored so you can fix them. This helps if you pasted a list with labels or stray symbols.

How is the median worked out?

The median is the middle value once the numbers are sorted. With an odd count it is the middle one. With an even count it is the average of the two middle ones, so the median of 1, 2, 3 and 4 is 2.5.

Related tools