## Octal Number

Octal numbers use digits from 0-7 only. It is known as base-8 number. The place value of each digits of an octal number varies as the whole number powers of 8 starting from the right (Least Significant Digit). The first single digit number in octal system is 0 and the last is 7. Similarly, the first two digit octal number is 10 and the last is 77 and so on. Octal number system was widely used in early computers.

## Hexadecimal Number

Hexadecimal number system uses 16 different symbols to represent a numeric value. It uses numbers 0 to 9 and alphabets A to F for representation. . The place value of each digits of an hexadecimal number varies as the whole number powers of 16 starting from the right (Least Significant Digit). The first single digit number in hexadecimal system is 0 and the last is F. Similarly, the first two digit hexadecimal number is 10 and the last is FF and so on. It is used as an alternative for binary numbers by developers and programmers.

## Steps to convert Octal to hexadecimal

### Step 1:

First thing you have to do is to convert the octal value to binary. For that, from the table below, write the binary number corresponding to each digits of octal number and combine them together.

Octal | Binary |
---|---|

0 | 000 |

1 | 001 |

2 | 010 |

3 | 011 |

4 | 100 |

5 | 101 |

6 | 110 |

7 | 111 |

### Step 2:

To convert any binary number to hexadecimal, check whether the number of digits of the binary number is a multiple of 4.

### Step 3:

If the number of digits of the binary number is a multiple of 4 proceed to step 4. Otherwise add zeros to the left of the digits.

### Step 4:

Divide the digits of binary number into groups of 4 digits.

### Step 5:

Refer the table below and hex value correspond to each group of digits.

Binary | Hexadecimal |
---|---|

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 |

### Step 6:

Join the results together to get the converted hexadecimal value.

## Use Octal to Hexadecimal convertor

## Octal to Hexadecimal Number conversion example

### Convert 714_{8} from octal to hex

First, we have to convert 714 to binary.

714_{8} = 111001100_{2}

Now, convert the obtained binary value to hexadecimal.

111001100_{2} = 1DD_{16}

## Octal to Hexadecimal conversion table

Octal Number | Hexadecimal Number |
---|---|

0 | 0 |

1 | 1 |

2 | 2 |

3 | 3 |

4 | 4 |

5 | 5 |

6 | 6 |

7 | 7 |

10 | 8 |

11 | 9 |

12 | A |

13 | B |

14 | C |

15 | D |

E | 16 |

17 | F |

20 | 10 |