Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36. Type in any box and all the others update instantly. Very large numbers stay exact, and the division method is shown step by step for homework.
Steps: decimal → binary (divide by 2)
How to convert number bases
- Type a number in any box – decimal, binary, octal, hex or your custom base.
- All other boxes update instantly. Prefixes like 0x and 0b are understood.
- See the "divide by 2" method used in school to convert decimal to binary.
Quick reference
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 255 | 1111 1111 | 377 | FF |
Frequently asked questions
Why do programmers use hexadecimal?
One hex digit is exactly 4 binary digits, so long binary numbers become short and readable – like colours (#FF5733) and memory addresses.
How big a number can I convert?
There's no practical limit – numbers are stored exactly using big integers.