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

Try another value

Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.

Input base:
Decimal51966
Hex0xCAFE
Binary0b1100101011111110
Octal0o145376

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

This tool runs entirely in your browser - nothing you enter is uploaded or stored.

Want to learn the method behind this tool? Read How to Convert Hexadecimal to Decimal - the full step-by-step guide.