CalcuClubCalcuClub Logo

Octal to Hexadecimal Converter

Convert from:
Convert to:
The result will be displayed here.
Calculation Steps:
Calculation steps will be displayed here.

Table of Contents

How does octal to hexadecimal conversion work?

The conversion from octal to hexadecimal is not direct, as the octal system (base 8) and the hexadecimal system (base 16) do not have an immediate relationship like binary to hexadecimal conversion. To convert an octal number to hexadecimal, an intermediate conversion to binary or decimal is typically used before converting to hexadecimal.

Octal to hexadecimal conversion method

  1. Convert from octal to binary: Each octal digit is converted to its 3-bit binary equivalent.
  2. Group bits in blocks of 4: Once the number is in binary, group the bits in sets of 4, starting from the right. Add leading zeros if necessary to complete a group.
  3. Convert from binary to hexadecimal: Each group of 4 bits is converted to its hexadecimal equivalent.

Example #1

Convert the octal number 745 to hexadecimal.

  1. Convert each digit to binary:
    • 7 = 111
    • 4 = 100
    • 5 = 101
    The number in binary is: 111100101.
  2. Group into blocks of 4 bits: 0001 1110 0101
  3. Convert each group of 4 bits to hexadecimal:
    • 0001 = 1
    • 1110 = E
    • 0101 = 5

Result: The octal number 745 is 1E5 in hexadecimal.

Example #2

Convert the octal number 123 to hexadecimal.

  1. Convert each digit to binary:
    • 1 = 001
    • 2 = 010
    • 3 = 011
    The number in binary is: 001010011.
  2. Group into blocks of 4 bits: 0000 0101 0011
  3. Convert each group of 4 bits to hexadecimal:
    • 0000 = 0
    • 0101 = 5
    • 0011 = 3

Result: The octal number 123 is 53 in hexadecimal.

Octal to hexadecimal conversion table

OctalBinaryHexadecimal
000000
100011
200102
300113
401004
501015
601106
701117
1010008
1110019
121010A
131011B
141100C
151101D
161110E
171111F
370001 11111F
770011 11113F
1250101 010155
1770111 11117F
2001000 000080
2521010 1010AA
3601111 0000F0
3771111 1111FF

How was this page? Share feedback.