Hex is the most readable way to look at binary. In this lesson you’ll learn two ways to convert between hexadecimal and binary — including the direct nibble mapping that turns every hex digit into exactly 4 bits (and back) with no arithmetic.
Way 1 (Two-step):
Way 2 (Direct):
Map each hex digit → 4-bit nibble. (Fastest; what pros use).
Example mapping:
A→1010, B→1011, C→1100, D→1101, E→1110, F→1111.
Worked examples:
1 | D | 5 → 0001 1101 0101 → 0001 1101 0101.5 | E | 9 → 0101 1110 1001 → 0101 1110 1001.1 | D | F → 0001 1101 1111 → 0001 1101 1111.Tip: Always group the final binary as nibbles (4 bits) for readability.
Way 1 (Two-step):
Way 2 (Direct):
Group bits in fours from the right, then map each 4-bit group to one hex digit.
Worked examples :
0001 | 1101 | 0101 → 1 D 5 → 1D5₁₆.0001 | 1101 | 1111 → 1 D F → 1DF₁₆.
99 comments