Sort Numbers
Paste numbers (one per line) to sort them numerically.
Free · Runs in your browser · Your text is never uploaded
Sorting numbers correctly
Sorting numbers as text puts 100 before 20 because “1” comes before “2”. Numeric sorting compares the actual values, so 20 comes before 100. Decimals (3.14), negative numbers (-5) and comma decimals (2,5) are understood.
When a line contains text as well as a number (for example “Order 42”), the first number found is used. Lines without any number are placed at the end.
Need more options? Open the full Sort Lines.
Frequently asked questions
How do I sort numbers from smallest to largest?
Paste them one per line and choose “Numbers, low to high”.
Why does alphabetical sorting put 100 before 20?
Text sorting compares character by character, so “1” sorts before “2”.
Does it handle negatives and decimals?
Yes, both are sorted by their numeric value.