B in Decimal
Hexadecimal B equals 11 in decimal.
B in all number bases
Decimal11
Hexadecimal0xB
Binary1011
Octal13
Try another value
Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.
Input base:
Decimal
11Hex
0xBBinary
0b1011Octal
0o13How b converts from hexadecimal to decimal
Multiply each digit by 16 raised to its position (starting at 0 from the right), then add the results:
B× 160 = 11 × 1 = 11
Sum: 11
This tool runs entirely in your browser - nothing you enter is uploaded or stored.