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.
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.
Number Base Converter
Convert any number between binary, octal, decimal, and hexadecimal all at once.
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.
1A3F to binary1 → 0001A → 10103 → 0011F → 1111Result:
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.
11010011 to hexSplit into nibbles:
1101 00111101 = 13 = D0011 = 3 = 3Result:
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=00114=0100 5=0101 6=0110 7=01118=1000 9=1001 A=1010 B=1011C=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.
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.