Hex to Binary Calculator

hex to binary

Hex to Binary Calculator

Enter a hexadecimal (base 16) value to convert it to binary (base 2), decimal, and octal. Each hex digit expands to exactly 4 binary bits.

Hexadecimal base 16

Binary to Hex Calculator

Enter a binary (base 2) number to convert it to hexadecimal, decimal, and octal. Group every 4 bits from the right to get each hex digit.

Binary base 2

Number Base Converter

Convert any number between binary, octal, decimal, and hexadecimal all at once.

Value

Hex to Binary Reference Table

Hex Binary (4-bit) Decimal Octal

How to Convert Hex to Binary

The easiest way to convert hexadecimal to binary is to replace each hex digit with its equivalent 4-bit binary group (nibble). Because 16 = 2⁴, every single hex digit maps exactly to four binary digits — no arithmetic required.

Example: Convert 1A3F to binary
10001
A1010
30011
F1111
Result: 0001 1010 0011 1111

How to Convert Binary to Hex

To convert binary to hexadecimal, group the binary digits into sets of 4 starting from the right (padding with leading zeros if needed), then replace each group with its hex digit.

Example: Convert 11010011 to hex
Split into nibbles: 1101 0011
1101 = 13 = D
0011 = 3 = 3
Result: D3

Hex Digit to 4-Bit Binary Reference

Each of the 16 hexadecimal digits has a fixed 4-bit binary equivalent. Memorising these 16 mappings lets you convert between hex and binary instantly without any calculation.

0=0000   1=0001   2=0010   3=0011
4=0100   5=0101   6=0110   7=0111
8=1000   9=1001   A=1010   B=1011
C=1100   D=1101   E=1110   F=1111

Why Hex and Binary Are Closely Related

Hexadecimal was designed as a shorthand for binary. Since 16 is exactly 2⁴, every hex digit represents exactly one nibble (4 bits). This means a byte (8 bits) is always exactly 2 hex digits, and conversions between the two bases require no multiplication or division — just a direct substitution from the lookup table above.

1 hex digit = 4 binary bits (1 nibble)
2 hex digits = 8 binary bits (1 byte)
4 hex digits = 16 binary bits (1 word)
8 hex digits = 32 binary bits (1 double word)

Practical Uses of Hex to Binary Conversion

Hex-to-binary conversion is essential when reading CPU registers and memory dumps, interpreting network packet payloads, decoding machine code instructions, working with bitwise flags and bitmasks in programming, analysing colour values in graphics (e.g. #FF5733 → RGB binary), and understanding cryptographic hash outputs and digital certificates.