Number Sorter
Paste numbers and sort them as numbers, not as text.
About this tool
Commas and spaces can separate values. A value that is not a number is rejected.
Very large values use ordinary JavaScript numbers, so integers past 2^53 are not exact.
How to use it
- Open this page and provide the input it asks for.
- Set the options that are visible, then use Sort numbers.
- Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.
Limitations
- Very large values use ordinary JavaScript numbers, so integers past 2^53 are not exact.
Magnitude order inside JavaScript's safe integers
Numeric comparison, not a dictionary
The page parses numbers and orders them by value. “10” comes after “2”. That is the whole reason to use this page instead of the line sorter or the word sorter, which both use text order. Ascending and descending are the two directions. Tokens that are not numbers are rejected or skipped according to the control’s actual behavior, so a mixed sentence is not a reliable source. Paste a list of numbers.
Where exactness stops
Values are ordinary JavaScript numbers. Integers past 2^53 are not all distinct in that format. 9007199254740993 and the next integer can collapse. If your list is account ids or snowflake-style ids, do not sort them here and expect every id to survive as a different value. Decimals are binary floating point. “0.1” and “0.10” are the same value and may not keep the original spelling. The page sorts values, not the original tokens’ text.
Signs and separators
A thousands comma is not part of a plain number parse. “1,000” can fail or be read as 1, depending on the split. Strip separators first if they are grouping marks, and do not strip decimal points if you still need the fraction. Negatives sort before positives in ascending order. An empty line is not zero unless you typed zero.
Spelling is not preserved
The value 1.10 and the value 1.1 are the same number and may be printed from the numeric value rather than the original characters. If the trailing zero was significant to you, this page is the wrong place to keep it. Identifiers that merely look numeric, especially ones longer than the safe integer range, should be sorted as lines of text so every character survives.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

