Sort Numbers

Paste any list of numbers and order it low to high or high to low, with count, min, max, sum, average, and median calculated alongside.

Numbers in

Comma, space, or line separated. Mixed formats work too.

Order

Numbers out

Ranked in the order you picked, duplicates gone if you flagged them.

Sorted numbers show up here.

Count0
Minimum-
Maximum-
Sum0
Average-
Median-

A sorted number list turns a wall of digits into three things at once: order, spread, and center.

Why the order you pick changes what you notice

An unsorted column of scores or prices hides its outliers in the middle of the noise. Sort it low to high and the smallest value sits at the top, the largest at the bottom, and every gap between neighbors becomes visible. Sort it high to low instead when the story is about the top entries first, a leaderboard or a ranked shortlist for example.

The duplicate problem sorting doesn't solve

Sorting only rearranges. Feed in 5, 2, 8, 2, 5 and the sorted output is still 2, 2, 5, 5, 8, five entries, same repeats, just lined up next to each other. Flip on Remove duplicates before you sort and the tool drops repeats first, so that same input becomes 2, 5, 8 with a count of three, not five. Leave the toggle off when the repeat count itself matters, a score that shows up four times on a class roster for instance.

For a dedicated pass at duplicates without changing the order, the Remove Duplicate Numbers tool does that on its own.

Where a sorted list earns its keep

What this sorter won't do

The parser strips anything that isn't a digit, a decimal point, or a minus sign. A value like $42.50 becomes 42.5, and 3,200 loses its comma to read as 3200 correctly, but a unit glued to the number, like 42kg, keeps only the 42. Scientific notation such as 1e10 parses fine. A comma-separated version like 1,000e3 does not, since comma splitting runs first and breaks the exponent apart.

Every calculation runs in your browser tab, so a list in the tens of thousands of entries slows the page well before the math itself goes wrong. For grouped or weighted numbers, where how often a value repeats changes the outcome, the Number List Statistics tool gives a fuller picture than sort order alone.

Average and median often disagree once outliers show up. A single 200 in a list of 2, 3, 4, 5 drags the average toward 43 while the median barely moves. When the two numbers pull apart, check which one actually answers your question before you report either.

Questions about sorting a number list

Short answers for the details that come up once real data goes into the box.

Does this handle negative numbers and decimals?

Yes. -12.5, 3.14, and 0 all sort correctly in either direction, and the stats grid factors negative values into the minimum, sum, and average.

What counts as a valid separator?

Commas, spaces, tabs, and line breaks all work, and you can mix them in the same block of text without breaking the parse.

Why is my count lower than the number of values I pasted?

Two reasons. Non-numeric tokens get silently dropped during parsing, and if Remove duplicates is on, repeated values collapse into one before the count runs. Turn the toggle off to see every entry counted individually.

Does the tool store or send the numbers I type?

No. Parsing, sorting, and the stats grid all run in JavaScript inside your browser tab. Nothing gets uploaded anywhere.

How is the median calculated when the list has an even count?

The two middle values, once sorted, get averaged. A four-item list of 2, 4, 6, 8 returns a median of 5, the midpoint between 4 and 6.

Can I sort a mix of text and numbers?

Only the numeric tokens make it through. A line like "Item 42: price 19.99" contributes 42 and 19.99 to the sort and drops the surrounding words.