Four bits can form sixteen different patterns:
0000through:
1111One hexadecimal digit also has sixteen possible values:
0through:
FThat creates a direct correspondence.
| Binary | Hex | Decimal |
|---|---|---|
| 0000 | 0 | 0 |
| 0001 | 1 | 1 |
| 0010 | 2 | 2 |
| 0011 | 3 | 3 |
| 0100 | 4 | 4 |
| 0101 | 5 | 5 |
| 0110 | 6 | 6 |
| 0111 | 7 | 7 |
| 1000 | 8 | 8 |
| 1001 | 9 | 9 |
| 1010 | A | 10 |
| 1011 | B | 11 |
| 1100 | C | 12 |
| 1101 | D | 13 |
| 1110 | E | 14 |
| 1111 | F | 15 |
This table is the key connection between binary and hexadecimal.
Consider:
10101100Split the binary value into groups of four bits from the right:
1010 1100Convert each group separately.
From the table:
1010 = A
1100 = CTherefore:
10101100₂ = AC₁₆You do not need to convert the entire binary number to decimal first.
The four-bit groups map directly to hexadecimal digits.
Convert:
00111110Group the bits:
0011 1110Convert each group:
0011 = 3
1110 = ESo:
00111110₂ = 3E₁₆The process works in reverse.
Suppose the hexadecimal value is:
7BConvert each hex digit to four bits.
7 = 0111
B = 1011Combine the groups:
01111011Therefore:
7B₁₆ = 01111011₂The hexadecimal digit:
3corresponds to:
0011not merely:
11Both binary strings represent the same numeric quantity when interpreted as unsigned values, but 0011 preserves the full four-bit group.
That makes hex-to-binary conversion easier to organize consistently.
Compare the same pattern:
Binary: 1110101011010010
Hexadecimal: EAD2Each hexadecimal digit replaces one group of four binary bits:
1110 1010 1101 0010
E A D 2The hexadecimal form is shorter for a person to read while preserving a direct connection to the underlying bit pattern.
Binary and hexadecimal often make low-level representation easier to see.
Decimal remains convenient when people are thinking about ordinary numeric quantity.
For example, the same value can be represented as:
Binary: 00101010
Hexadecimal: 2A
Decimal: 42Each form represents the same quantity.
The best representation depends on what you are trying to understand.
The module has now connected three positional number systems:
Base 10.
Digits:
0–9Place values grow by powers of 10.
Base 2.
Digits:
0–1Place values grow by powers of 2.
Base 16.
Digits:
0–9 and A–FPlace values grow by powers of 16.
The systems use different symbols and bases, but the underlying positional idea is the same.
The most useful connection to remember is:
4 binary bits ↔ 1 hexadecimal digit
That relationship explains why hexadecimal appears so often near binary information.
Hexadecimal gives people a shorter way to represent bit patterns without losing the clean four-bit structure underneath.