Skip to content

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

How 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