12 in Decimal
Hexadecimal 12 equals 18 in decimal.
12 in all number bases
Decimal18
Hexadecimal0x12
Binary0001 0010
Octal22
Try another value
Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.
Input base:
Decimal
18Hex
0x12Binary
0b10010Octal
0o22How 12 converts from hexadecimal to decimal
Multiply each digit by 16 raised to its position (starting at 0 from the right), then add the results:
1× 161 = 1 × 16 = 16
2× 160 = 2 × 1 = 2
Sum: 18
This tool runs entirely in your browser - nothing you enter is uploaded or stored.