Math
Binary, hex & decimal converter
Convert whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36.
Decimal value
255
from base 10
- Binary (2)
- 11111111
- Octal (8)
- 377
- Decimal (10)
- 255
- Hexadecimal (16)
- FF
- Base 7
- 513
- Bits needed
- 8
Saved scenarios
Save different inputs to compare them side by side.No saved scenarios yet. Press “Save scenario” to keep the current inputs and result here.
How it’s calculated
Each digit is multiplied by the base raised to the power of its position, and the results are added: for example 1011 in binary = 8 + 2 + 1 = 11. To convert out of decimal, divide repeatedly by the new base and read the remainders backwards. Whole numbers up to 9,007,199,254,740,991 are supported.