Binary to Hexadecimal Converter

Convert binary (base-2) to hexadecimal (base-16). Because one hex digit equals exactly 4 binary bits (a "nibble"), this conversion is especially elegant.

Common Values

InputHexadecimal
00
11
1010a
1111f
11111111ff
1000000080
100000000100
1111111111111111ffff

How It Works

Each hex digit maps to exactly 4 binary bits. Group the binary number from the right into groups of 4, padding with leading zeros if needed. Then convert each 4-bit group: 0000=0, 0001=1, ..., 1001=9, 1010=A, 1011=B, 1100=C, 1101=D, 1110=E, 1111=F. For example, 11111111 → 1111 1111 → FF.

Worked Examples

BinaryHexadecimal
00000
00011
1010a
1111f
0001000010
11111111ff
100000000100
1111111111111111ffff

Related Conversions

Frequently Asked Questions