2A in Decimal
Hexadecimal 2A equals 42 in decimal.
2A 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 2a converts from hexadecimal to decimal
Multiply each digit by 16 raised to its position (starting at 0 from the right), then add the results:
2× 161 = 2 × 16 = 32
A× 160 = 10 × 1 = 10
Sum: 42
This tool runs entirely in your browser - nothing you enter is uploaded or stored.