Base 16 → Base 2 • 4-Bit Nibble Mapping

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.

Samples:
Binary Output (Base 2)
0010 1010
4-Bit Padded Binary
00101010
Minimum Unpadded Binary
101010
Decimal (Base 10)
42
Octal (Base 8)
52

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)
0000000
1100011
2200102
3300113
4401004
5501015
6601106
7701117
88100010
99100111
A10101012
B11101113
C12110014
D13110115
E14111016
F15111117

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.