How to use the Hex to Binary Converter
- Type a hex number using 0–9 and A–F.
- Read the binary result, grouped in fours, and copy it.
- See each hex digit and its 4-bit value in the steps.
- Use the swap button to convert binary back to hex.
About this tool
Convert hex to binary in an instant. Type a hexadecimal value such as 3F, FF or 0xC0FFEE and the binary result appears, grouped in fours so it is easy to read, with the working shown underneath: each hex digit next to its 4 bits per digit binary value.
Hexadecimal to binary conversion needs no arithmetic at all. Because 16 = 2⁴, every hex digit is exactly four binary digits (a nibble). Replace each digit with its four-bit pattern – 0 = 0000, 1 = 0001 … 9 = 1001, A = 1010, B = 1011, C = 1100, D = 1101, E = 1110, F = 1111 – and join them. So 3F becomes 0011 1111, and 2D becomes 0010 1101 (which is 45 in decimal).
This base 16 to base 2 conversion is everyday work in programming, electronics and networking – reading register values, bit masks, colour codes and IPv6 addresses. The converter accepts upper or lower case and the 0x prefix, shows the decimal value too, and works with numbers of any length. Use the swap button for Binary to Hex.