Binary to Decimal Converter
Type a binary number and get its decimal value, plus hex and octal.
- Decimal
- Hex
- Binary
- Octal
Click a bit to flip it.
How to convert binary to decimal
Binary (base 2) has only the digits 0 and 1. Each place is worth a power of two: 1, 2, 4, 8, 16, 32, 64, 128 and so on, from right to left. Add up the places that hold a 1.
Worked example
Convert 10110110: 128 + 32 + 16 + 4 + 2 = 182.
Tips
- Spaces and underscores are ignored, so
1011 0110works. - Click bits in the grid to flip them and watch the other bases update.
- With Signed ticked and 8 bits, the same pattern reads as 182 - 256 = -74, because the top bit is the sign.
Other conversions
- Hex to decimal · Decimal to hex
- Binary to decimal · Decimal to binary
- Hex to binary · Binary to hex
- Full programmer calculator with bitwise operations, floats and timestamps