Binary Converter
Convert numbers between binary, decimal, hex, octal or any base up to 36. Numbers of any length stay exact.
Result 45.
Decimal (base 10)45
Step by step
- Add the place values (powers of 2) of the 1 bits: 32 + 8 + 4 + 1 = 45
| binary (base 2) | 10 1101 |
|---|---|
| octal (base 8) | 55 |
| decimal (base 10) | 45 |
| hexadecimal (base 16) | 2D |
| Bits needed | 6 bits (fits in 1 byte) |
How base conversion works
To decimal: multiply each digit by the base raised to its position and add (101101₂ = 32 + 8 + 4 + 1 = 45). From decimal: divide by the new base repeatedly and read the remainders from the bottom up (45 → 101101).
Between binary and hex or octal there is a shortcut: group the bits in 4s (hex) or 3s (octal).
Popular numbers in binary
Frequently asked questions
How do I convert binary to decimal?
Add the place values of the 1 bits: 101101 = 32 + 8 + 4 + 1 = 45.
What bases can it convert?
Any base from 2 to 36; digits above 9 use letters A–Z.