Binary Decimal Hex Converter
Quickly move from one numeric base to another.
Binary11111111
Decimal255
Hex0xFF
Ad placeholder
How is this result calculated?
Numeric bases change how the same number is written: base 2 for binary, base 10 for decimal, base 16 for hexadecimal.
Binary is close to machine representation. Hexadecimal compresses binary: one hex digit maps to 4 bits.
These conversions are useful for bit masks, colors, permissions, low-level identifiers and debugging.
Frequently asked questions
Why is hexadecimal common in development?+
It is more compact than binary and still easy to map to groups of 4 bits.
Is the 0x prefix required?+
No. It only indicates a hexadecimal number in many programming languages.