How to convert Hexadecimal to Octal

Hexadecimal numbering system is one of the numeral systems that are commonly used in computers and other digital systems. It is base 16 and it has 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F.

The octal numeral system is a numbering system that is based on 8 digits: 0, 1, 2, 3, 4, 5, 6, 7. It used to be popular in the early days of computing when it was primarily used for counting inputs and outputs, one byte at a time.

Table #1: Hexadecimal to Octal conversion table

Hexadecimal0123456789ABCDEF
Octal012345671011121314151617

As with octal to hexadecimal, the easiest way to convert hexadecimal back to octal numbers is through binary conversion.

  1. Start with any hexadecimal number
  2. Translate it into binary system by swapping each hexadecimal digit with the equivalent group of four binary digits
  3. Drop any leading zeros from the resulting binary number, or pad it with zeros in order to achieve groups of three digits
  4. Convert binary representation of the hexadecimal number into resulting octal number

Table #2: Hexadecimal to Binary conversion table

Hexadecimal0123456789ABCDEF
Binary0000000100100011010001010110011110001001101010111100110111101111

Table #3: Binary to Octal conversion table

Binary000001010011100101110111
Octal01234567

Example #1: Convert hexadecimal 6F into octal

Step descriptionResult
Translate 6F into binary0110 1111
Pad one leading zero in order to achieve groups of 3 binary digits001 101 111
Resulting octal number157

Example #2: Convert hexadecimal A16 into octal

Step descriptionResult
Translate A16 into binary1010 0001 0110
Form groups of 3 binary digits101 000 010 110
Resulting octal number5026

Convert hexadecimal numbers to octal numbers.

Convert octal numbers to hexadecimal values.

Learn how to manually convert numbers between octal and hexadecimal numbering systems.


Have feedback or questions?

Please, do let us know and we'll see what we can do for you.

0/2000