40 in Decimal
Hexadecimal 40 equals 64 in decimal.
40 in all number bases
Decimal64
Hexadecimal0x40
Binary0100 0000
Octal100
Try another value
Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.
Input base:
Decimal
64Hex
0x40Binary
0b1000000Octal
0o100How 40 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
0× 160 = 0 × 1 = 0
Sum: 64
This tool runs entirely in your browser - nothing you enter is uploaded or stored.