Converting these numbers should be second nature for anyone working hands-on in computing, but this chart may be handy while learning.
Note that you don’t necessarily need to include the leading 0s in the binary numbers, although it is handy to demonstrate that a single Hexadecimal digit contains exactly four bits of information.
Base Conversions Table
| Decimal (0dX) | Binary (0bX) | Hexadecimal (0xX) |
|---|---|---|
| 0 | 0000 | 0 |
| 1 | 0001 | 1 |
| 2 | 0010 | 2 |
| 3 | 0011 | 3 |
| 4 | 0100 | 4 |
| 5 | 0101 | 5 |
| 6 | 0110 | 6 |
| 7 | 0111 | 7 |
| 8 | 1000 | 8 |
| 9 | 1001 | 9 |
| 10 | 1010 | A |
| 11 | 1011 | B |
| 12 | 1100 | C |
| 13 | 1101 | D |
| 14 | 1110 | E |
| 15 | 1111 | F |
Converting Binary to Hexadecimal
flowchart TD
A(0b11011011)
A-->B(0b1101)
A--Split into 4-bit groups-->C(0b1011)
B-->D(0d13)
C--Convert each to decimal-->E(0d11)
D-->F(0xD)
E--Convert each to hex -->G(0xB)
H(0b11011011 = 0xDB)
F-->H
G--Combine for the answer-->H