42 in Decimal
Hexadecimal 42 equals 66 in decimal.
42 in all number bases
Decimal66
Hexadecimal0x42
Binary0100 0010
Octal102
Try another value
Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.
Input base:
Decimal
66Hex
0x42Binary
0b1000010Octal
0o102How 42 converts from hexadecimal to decimal
Multiply each digit by 16 raised to its position (starting at 0 from the right), then add the results:
4× 161 = 4 × 16 = 64
2× 160 = 2 × 1 = 2
Sum: 66
This tool runs entirely in your browser - nothing you enter is uploaded or stored.