Number Reference Lookup

What is 4 in Binary, Hex, and Octal?

The decimal number 4 converts to exactly 00000100 in base-2 binary, 04 in base-16 hexadecimal, and 4 in base-8 octal.

Conversion Table for 4

Decimal (Base 10) 4
Binary (Base 2)
Hexadecimal (Base 16) 0x04
Octal (Base 8) 4
ASCII Character Control / Non-printable

Explore Other Popular Converters