Tools

Home
Percentage CalcUnit ConverterBMI CalculatorCalculatorTip Calculator

Sort Numbers Online

Paste any list of numbers, sort ascending or descending, remove duplicates, and get instant statistics

Your files never leave your browser
Input0 numbers found
Output0 numbers
Count
—
Sum
—
Average
—
Median
—
Min
—
Max
—
Range
—
Ready — paste numbers to begin
Live sort enabled

Paste any list of numbers — one per line, comma-separated, or a messy mix copied from a spreadsheet — and get them sorted ascending or descending in one click. Duplicates can be stripped out, and you'll see live stats (sum, mean, median, min, max, range) without opening a separate calculator. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste Numbers
➔
Parse & Sort
➔
Output & Stats

A regex scanner pulls every valid number from your input — integers, decimals, negatives, doesn't matter what surrounds them. The extracted values get sorted numerically (not alphabetically, so 10 comes after 9, not before 2). Stats are calculated on the fly as results appear.

Examples

Cleaning Up Survey Scores

You collected satisfaction ratings and need them ranked lowest to highest.

INPUT
8, 3, 10, 1, 7, 5, 9, 2, 6, 4
OUTPUT
1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Sorting Negative Temperatures

Weather data with mixed positive and negative readings from a week of sensor logs.

INPUT
-3.5 12.1 -0.8 7.4 -11.2 0 4.6
OUTPUT
-11.2 -3.5 -0.8 0 4.6 7.4 12.1

Messy Data From a Chat Thread

Someone pasted prices into Slack with dollar signs, commas, and random text mixed in. The parser grabs just the numbers.

INPUT
price was $45.99 got it for 29.50 the other one: 112 maybe 8 bucks?
OUTPUT
8, 29.50, 45.99, 112

Who Uses This

💻 Developers

Quick-sort API response values or debug output without writing a script.

📈 Data Analysts

Rank raw data sets and spot outliers before importing into a spreadsheet.

🎓 Students

Check homework answers or order experiment measurements for lab reports.

💰 Accountants

Sort invoice amounts or transaction figures when a spreadsheet feels like overkill.

Common Mistakes

Expecting alphabetical sort

This tool sorts numerically. If you paste "1, 10, 2, 20" it returns "1, 2, 10, 20" — not "1, 10, 2, 20" like a text sort would. That is the whole point.

Pasting numbers with thousand separators

A value like "1,500" gets read as two numbers: 1 and 500. Remove the commas first, or the parser will split them. Use "1500" instead.

Forgetting the "Remove duplicates" toggle

If your output looks longer than expected, you probably have repeated values. Flip the toggle on and duplicates disappear from the result.

Technical Details

Frequently Asked Questions

How do I sort numbers in ascending order online?

Paste your numbers into the input box in any format. The default sort order is ascending, so they'll be arranged smallest to largest automatically. You can switch to descending with one click if you need it the other way.

Can I sort decimal and negative numbers?

Yes. The parser handles decimals like 3.14 and negatives like -7.2 without any extra steps. They get placed in the correct numerical position, so -7.2 comes before 3.14 in ascending order.

What is the difference between numerical and alphabetical sorting?

Alphabetical (lexicographic) sorting treats numbers as text, so "10" comes before "2" because "1" is less than "2" character by character. Numerical sorting compares actual values, placing 2 before 10. This tool always sorts numerically.

How do I remove duplicate numbers from my list?

Check the "Remove duplicates" toggle above the output pane. The sorted result will only show each unique value once. Handy when you have merged lists and don't want repeats cluttering things up.

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

There is no hard cap. Since everything runs in your browser, the practical limit depends on your device's memory. Most machines handle tens of thousands of numbers with zero lag. A million might take a second or two.

Share: