Hexadecimal to Octal Converter
Enter a hexadecimal number to convert it to octal.
How to Convert Hex to Octal
Step One: Convert Hex to Decimal
To convert a number from hex to decimal, multiply each digit in the hex number from the rightmost number to the left by 16 to the power of n, where n is the distance from the right.
When reading the hex number from right to left, the digit furthest to the right is equal to the digit times 160. The digit one position in from the right is equal to the digit times 161.
decimal number10 = (d0 × 160) + (d1 × 161) + … + (dn – 1 × 16n – 1)
In the formula above, d0 is the hex digit furthest to the right, d1 is the digit one position from the right, and dn – 1 is the digit furthest to the left.
Step Two: Convert Decimal to Octal
To convert from decimal to octal, divide the decimal number by 8 using long division. There should be a remainder of 0 through 7; write that to the side of the division problem.
Take the result of the first division problem and divide that by 8 again. Like before, there should be a remainder, which you should write to the side of the problem.
Continue this process until the result is 0.
The remainders that you wrote to the side of the division problems are the resulting octal number. The number should be read from the bottom to the top since the least significant digit will be at the top, and the most significant digit will be at the bottom.
Hex to Octal Conversion Table
|Hexadecimal Number||Octal Number|