Hexadecimal to Octal Converter
Enter a hexadecimal number to convert it to octal.
On this page:
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 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
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|
Frequently Asked Questions
Is octal the same as hex?
No, octal and hex are not the same. Octal is a base 8 (digits 0-7) number system, and hex is a base 16 (digits 0-9 and letters A-F) number system.
When would you use octal instead of hex?
You would use octal instead of hex when you are working with legacy computing applications that use an octal number to represent three binary bits.
What is hex F in octal?
Hex F is equal to 17 in octal.