CAFE in Decimal
Hexadecimal CAFE equals 51966 in decimal.
Why this number matters: 51966 is 0xCAFE - a hexspeak favorite, part of Java's 0xCAFEBABE class-file magic number.
CAFE in all number bases
Decimal51966
Hexadecimal0xCAFE
Binary1100 1010 1111 1110
Octal145376
Try another value
Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.
Input base:
Decimal
51966Hex
0xCAFEBinary
0b1100101011111110Octal
0o145376How cafe converts from hexadecimal to decimal
Multiply each digit by 16 raised to its position (starting at 0 from the right), then add the results:
C× 163 = 12 × 4096 = 49152
A× 162 = 10 × 256 = 2560
F× 161 = 15 × 16 = 240
E× 160 = 14 × 1 = 14
Sum: 51966
This tool runs entirely in your browser - nothing you enter is uploaded or stored.