Sort Numbers

Sort a list of numbers in ascending or descending order, remove duplicates if needed, and output the result one per line or separated by commas or spaces.

  • 100% free
  • No signup
  • Runs in your browser

Overview

Paste a list of numbers and sort them in ascending or descending order.

How to use

  1. Paste your numbers into the box, one per line or separated by commas or spaces.
  2. Choose ascending (smallest first) or descending (largest first) order.
  3. Optionally remove duplicates and choose how the results are separated.
  4. Copy the sorted list from the Result box. It updates as you type.

How numbers are sorted

Numbers are sorted by value, not alphabetically, so 10 comes after 9 and not after 1. In ascending order negative numbers come before zero, and decimals take their proper place: 2.5 lies between 2 and 3.

With “Remove duplicates”, each value appears only once; 1.0 and 1 count as the same number.

Examples

Example Result
5, 2, 8, 1, 9 in ascending order 1, 2, 5, 8, 9
5, 2, 8, 1, 9 in descending order 9, 8, 5, 2, 1
3, −1, 2.5, 10, 3 ascending, without duplicates −1, 2.5, 3, 10
Tips: Choose ascending or descending order from the options.

FAQ

One number per line or comma- and space-separated. Decimals and negatives are allowed.

Because the tool compares numeric values. Alphabetical sorting would put “10” before “9”, because it compares the first character only.

Yes. Paste a column and choose “New lines” as the separator, so you can paste the result back into the same column.

Use the Sort List tool in Text & Lists; it sorts any lines alphabetically.

Need another tool?

Explore all 61 free tools: calculators, converters, date and time tools, random generators and text utilities.

Browse all tools