Hex to Binary Converter
Convert hexadecimal numbers into exact 4-bit binary nibbles. Toggle between 4-bit aligned leading-zero padding and minimum unpadded binary representation.
Individual 4-Bit Nibble Mapping
Why Hex to Binary Requires Zero Division
Because 16 = 2⁴, each single hexadecimal digit represents exactly four binary bits (one nibble). Simply substitute each hex symbol directly using the 0–F lookup table below and concatenate the four-bit blocks.
Padded vs. Minimum Binary Representation
For 2A₁₆, expanding 2 → 0010 and A → 1010 gives the 8-bit nibble-aligned form 00101010₂. Dropping leading zeros gives the mathematically identical minimum binary representation 101010₂ (6 bits). Hardware engineers typically prefer padded 4-bit or 8-bit alignment when inspecting registers.
Hexadecimal Digit to 4-Bit Binary Table
| Hexadecimal (Base 16) | Decimal (Base 10) | Binary (4-Bit Nibble) | Octal (Base 8) |
|---|---|---|---|
| 0 | 0 | 0000 | 0 |
| 1 | 1 | 0001 | 1 |
| 2 | 2 | 0010 | 2 |
| 3 | 3 | 0011 | 3 |
| 4 | 4 | 0100 | 4 |
| 5 | 5 | 0101 | 5 |
| 6 | 6 | 0110 | 6 |
| 7 | 7 | 0111 | 7 |
| 8 | 8 | 1000 | 10 |
| 9 | 9 | 1001 | 11 |
| A | 10 | 1010 | 12 |
| B | 11 | 1011 | 13 |
| C | 12 | 1100 | 14 |
| D | 13 | 1101 | 15 |
| E | 14 | 1110 | 16 |
| F | 15 | 1111 | 17 |
Frequently Asked Questions
How many binary bits are in one hexadecimal digit?
Exactly four binary bits (one nibble), because 2⁴ = 16 matches the 16 symbols of hexadecimal (0–F).
What is FF in binary?
Each F equals 1111, so FF in binary is 11111111 (eight 1-bits, representing decimal 255).
Does removing leading zeros change the value?
No. Just as 0042 equals 42 in decimal, 00101010 equals 101010 in binary. Leading zeros only indicate fixed bit width.