101010 in Decimal
Binary 101010 equals 42 in decimal.
101010 in all number bases
Decimal42
Hexadecimal0x2A
Binary0010 1010
Octal52
Try another value
Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.
Input base:
Decimal
42Hex
0x2ABinary
0b101010Octal
0o52How 101010 converts from binary to decimal
Multiply each digit by 2 raised to its position (starting at 0 from the right), then add the results:
1× 25 = 1 × 32 = 32
0× 24 = 0 × 16 = 0
1× 23 = 1 × 8 = 8
0× 22 = 0 × 4 = 0
1× 21 = 1 × 2 = 2
0× 20 = 0 × 1 = 0
Sum: 42
This tool runs entirely in your browser - nothing you enter is uploaded or stored.