Base 8 to Base 16 and Vice Versa
To convert from base 8 to base 16, first convert the base 8 number to base 2, then group the binary digits into groups of 4 bits and look up each group’s hexadecimal equivalent. A base 8 digit has 3 bits (23 = 8).
To convert from base 16 to base 8, first convert the base 16 number to base 2, then group the binary digits into groups of 3 bits and look up each group’s octal equivalent. A base 16 digit has 4 bits (24 = 16).
Binary to Octal Conversion Table
| A | B | C | Octal equivalent |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 2 |
| 0 | 1 | 1 | 3 |
| 1 | 0 | 0 | 4 |
| 1 | 0 | 1 | 5 |
| 1 | 1 | 0 | 6 |
| 1 | 1 | 1 | 7 |
Binary to Hexadecimal Conversion Table
| A | B | C | D | Hexadecimal equivalent |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 2 |
| 0 | 0 | 1 | 1 | 3 |
| 0 | 1 | 0 | 0 | 4 |
| 0 | 1 | 0 | 1 | 5 |
| 0 | 1 | 1 | 0 | 6 |
| 0 | 1 | 1 | 1 | 7 |
| 1 | 0 | 0 | 0 | 8 |
| 1 | 0 | 0 | 1 | 9 |
| 1 | 0 | 1 | 0 | A |
| 1 | 0 | 1 | 1 | B |
| 1 | 1 | 0 | 0 | C |
| 1 | 1 | 0 | 1 | D |
| 1 | 1 | 1 | 0 | E |
| 1 | 1 | 1 | 1 | F |