Numbers converter
Convert whole numbers between bases 2 to 36, including binary, decimal, octal and hexadecimal.
FormulaBase 10 → base 2. Digits are evaluated by place value, then expressed in the target base.
Whole numbers are evaluated with integer arithmetic, including numbers larger than JavaScript’s safe-integer limit. Fractional numbers and radix prefixes are not accepted.
How to convert numbers
Choose the original unit and the unit you need, then enter a value. You can also edit the result field to calculate in reverse.
Example: 1 decimal = 1 binary.
The displayed formula is rounded for readability. Calculations use the stored conversion factors; selecting more digits changes display precision, not the certainty of the source definition.
Quick conversion table
| decimal | binary |
|---|---|
| 1 decimal | 1 binary |
| 2 decimal | 10 binary |
| 5 decimal | 101 binary |
| 10 decimal | 1010 binary |
| 20 decimal | 10100 binary |
| 50 decimal | 110010 binary |
| 100 decimal | 1100100 binary |
| 1000 decimal | 1111101000 binary |
Convert to every numbers unit
Based on your input above| Unit | Symbol | Result |
|---|---|---|
| binary | binary | 1 |
| octal | octal | 1 |
| decimal | decimal | 1 |
| hexadecimal | hexadecimal | 1 |
| base-2 | base-2 | 1 |
| base-3 | base-3 | 1 |
| base-4 | base-4 | 1 |
| base-5 | base-5 | 1 |
| base-6 | base-6 | 1 |
| base-7 | base-7 | 1 |
| base-8 | base-8 | 1 |
| base-9 | base-9 | 1 |
| base-10 | base-10 | 1 |
| base-11 | base-11 | 1 |
| base-12 | base-12 | 1 |
| base-13 | base-13 | 1 |
| base-14 | base-14 | 1 |
| base-15 | base-15 | 1 |
| base-16 | base-16 | 1 |
| base-17 | base-17 | 1 |
| base-18 | base-18 | 1 |
| base-19 | base-19 | 1 |
| base-20 | base-20 | 1 |
| base-21 | base-21 | 1 |
| base-22 | base-22 | 1 |
| base-23 | base-23 | 1 |
| base-24 | base-24 | 1 |
| base-25 | base-25 | 1 |
| base-26 | base-26 | 1 |
| base-27 | base-27 | 1 |
| base-28 | base-28 | 1 |
| base-29 | base-29 | 1 |
| base-30 | base-30 | 1 |
| base-31 | base-31 | 1 |
| base-32 | base-32 | 1 |
| base-33 | base-33 | 1 |
| base-34 | base-34 | 1 |
| base-35 | base-35 | 1 |
| base-36 | base-36 | 1 |