Number Base
Binary, Decimal and Hexadecimal
Convert whole numbers between binary, decimal and hexadecimal. Enter digits valid for the unit you pick.
How this is calculated
- Each digit is worth its face value times the base raised to its position.
- Binary 1010 = 1×2³ + 0×2² + 1×2¹ + 0×2⁰ = 10
- Hex FF = 15×16¹ + 15×16⁰ = 255
Whole numbers only, up to 9,007,199,254,740,991 — past that a browser can no longer represent every integer exactly, so larger input is rejected rather than silently rounded.
Checked against known values
- 10 dec = 1010 bin
- 255 dec = 11111111 bin
- 255 dec = FF hex
- 1000 hex = 4096 dec