ConceptStep · learning platform for computer science

Binary ↔ hexadecimal

Number systems · Lesson

← ConceptStep

Binary ↔ hexadecimal

One hexadecimal digit corresponds exactly to 4 bits. This lets us convert quickly without going through decimal every time.

1. The essential table

0000
↕
0
0001
↕
1
0010
↕
2
0011
↕
3
0100
↕
4
0101
↕
5
0110
↕
6
0111
↕
7
1000
↕
8
1001
↕
9
1010
↕
A
1011
↕
B
1100
↕
C
1101
↕
D
1110
↕
E
1111
↕
F

2. Example

Binary → hexadecimal: 101011112

1010 → A1111 → F

Therefore 101011112 = AF16.

Hexadecimal → binary: replace each digit with its 4-bit group:

A → 1010F → 1111

3. Practice

Choose the direction:

Binary → hexadecimal  |  Hexadecimal → binary

Guided practice — progress 0 / 5, correct 0.

Convert 100111002 to hexadecimal.

Guide: start from the right, split the number into groups of 4 bits and use the table. If the first group is short, pad it with leading zeros.


4. What you learned

Group bits correctly in sets of four and convert directly between base 2 and base 16 without using decimal as an intermediate step.

Your competency map

What you need to know for Binary ↔ hexadecimal

ConceptStep separates what is required from what is recommended or useful as reinforcement. Only required prerequisites block your progress.

Current topic Strong skill Review due Needs reinforcement To be mastered Optional support

Relationships: solid line = required · dashed line = recommended · dotted line = reinforcement.

GUIDED LEARNING PATHS

Want to choose the next skill to develop?