# How to convert hexadecimal number to octal

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.

## 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.

## Steps to convert Hexadecimal to Octal

### Step 1:

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

00000
00011
00102
00113
01004
01015
01106
01117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F

### Step 2:

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

### Step 3:

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

### Step 4:

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

### Step 5:

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

OctalBinary
0000
1001
2010
3011
4100
5101
6110
7111

### Step 6:

Join the results together to get the converted octal value.

35616 = 15268

78F616 = 743668

00
11
22
33
44
55
66
77
810
911
A12
B13
C14
D15
E16
F17
1020