Sorting lines as numbers (so 2 comes before 10) usually means a script or a spreadsheet. The Sort Numbers tool does it in the browser: paste one number per line, choose ascending or descending, and get numerically sorted lines—no sign-up and no data sent to a server.
What does Sort Numbers do?
Sort Numbers is a free online tool that sorts lines as numbers (integers and decimals) in ascending or descending order. One number per line. Non-numeric lines are typically sorted last. It is used to order numeric data (scores, IDs, prices) correctly instead of alphabetically (where 10 would come before 2). All processing runs in your browser; there is no upload, no storage, and no account required.
Key Features
- Numeric sort — Lines are compared as numbers so 2 comes before 10. Integers and decimals are supported. Non-numeric lines are sorted at the end.
- Ascending or descending — Sort smallest to largest or largest to smallest.
- One number per line — Paste or type with one number per line. Whitespace is trimmed. Scientific notation or thousands separators may or may not be supported depending on the tool.
- Instant result — Paste, set order, and see the sorted list. Copy when ready.
- Privacy-first — All processing happens in your browser. Your text is never sent to any server.
- No account — Use as often as you need without sign-up.
How to Use Sort Numbers
- Open the Sort Numbers tool.
- Paste or type your numbers (one per line).
- Choose ascending or descending. View the sorted result. Copy the result.
- Paste into your doc, spreadsheet, or next step. Use the "Use tool" button on the docs page if you are reading this from the documentation.
Real Use Cases
- Scores and rankings — Sort numbers in correct numeric order (1, 2, 10, 100).
- IDs and codes — Order numeric IDs or codes so 2 comes before 10.
- Prices and amounts — Sort monetary or quantity values numerically.
- Data export — Order numeric columns or lists before export or import.
- Statistics — Sort values for median, percentiles, or distribution review.
- Fix alphabetic sort — If you sorted numbers as text and got 10 before 2, paste here and sort numerically.
Why Use Sort Numbers Instead of Alternatives?
- vs. Sort Text — Sort Text sorts alphabetically (10 before 2). Sort Numbers sorts by value (2 before 10).
- vs. Spreadsheet — When the data is in a text field or email, the browser tool is faster. No export needed.
- vs. Manual reorder — No need to reorder by hand. One paste, set order, copy.
- vs. Sort IP Addresses — For IPv4 addresses use Sort IP Addresses. For plain numbers use this tool.
That (10 before 2) happens when lines are sorted as text. Use the sort numbers tool so values are compared numerically.
Benefits for Data Users, Developers, and Analysts
- Data users — Correct numeric order for lists, exports, or reports.
- Developers — Sort numeric output or config values. No one-off script.
- Analysts — Order values for stats or review. Avoid alphabetic number order.
Common Mistakes
- 10 before 2 — That happens when lines are sorted as text. Use the sort numbers tool so values are compared numerically.
- Non-numeric lines — Lines that are not valid numbers are typically sorted at the end. Remove or fix them if you need strict numeric order.
- Thousands separators — Some tools may not support commas in numbers. Use plain digits or check the tool.
- Forgetting to copy — The result is not saved. Copy before closing the tab or refreshing.
Frequently Asked Questions
What does sort numbers do?
It sorts lines as numbers (integers and decimals) in ascending or descending order. One number per line. Non-numeric lines are typically sorted last.
Integers and decimals. Lines that are not valid numbers are sorted at the end.
One number per line. Whitespace is trimmed. Scientific notation or thousands separators may or may not be supported depending on the tool.
Is my text stored?
No. All processing happens in your browser. Your text is never sent to any server.
When should I use sort numbers?
Use it to order numeric data (scores, IDs, prices) correctly instead of alphabetically (where 10 would come before 2).
Why is 10 before 2?
That happens when lines are sorted as text. Use the sort numbers tool so values are compared numerically.
Sort Numbers gives you numerically sorted lines in seconds: paste, set order, copy. No account, no server round-trip. For alphabetic sort use Sort Text, for IPs use Sort IP Addresses, and for length-based sort use Sort Text by Length.
Use the Sort Numbers tool to sort lines numerically.