Octal to Hexadecimal

Octal to Hexadecimal

Octal and hexadecimal are both numeral systems used in computing. Octal is a base-8 numeral system,
meaning it uses 8 digits (0 to 7), while hexadecimal is a base-16 numeral system, using 16 digits (0 to 9, and A to F).

Octal to Hexadecimal Converter

Octal:
base8

Resulst:

Hexadecimal
base16
Decimal
base10

Calculator

  • enter the octal number you want to convert

Results

  • the equivalent hexadecimal value of the octal number
  • the decimal equivalent of the octal number

Converting from octal to hexadecimal involves first converting the octal number into its binary equivalent and then converting that binary number into hexadecimal.
Convert the octal to binary. Each octal digit corresponds to three binary digits.

Convert the binary to a hexadecimal

Group the binary digits into groups of four starting from the right (the least significant bit) . Add leading zeros to complete the grouping of four bits, if necessary.
Convert each group of four binary digits into its hexadecimal equivalent.
Combine the hexadecimal digits to get the final result.

Example Conversions

Convert the octal number 346 to hexadecimal:

Convert 3, 4, and 6 into their binary equivalents:
octal 3 = 011 in binary
octal 4 = 100 in binary
octal 6 = 110 in binary
Combine the binary digits from top to bottom: 011 100 110
The octal number 346 is equivalent to binary 11100110
First, pad the binary number to ensure it's divisible into groups of four. Then, we'll convert each group of four binary digits into its hexadecimal equivalent.
Padding (if necessary): Since the binary number has 8 digits, adding leading zeros is unnecessary.
Group the binary digits into groups of four:
1110 0110
Convert each group of four binary digits into hexadecimal:
binary 1110 = E in hex
binary 0110 = 6 in hex
Combine the hexadecimal digits: E6
The octal number 346 is equivalent to the hexadecimal E6
Octal to binary

Convert the octal number 25624 to hexadecimal:

Convert 2, 5, 6, 2, and4 into their binary equivalents:
octal 2 = 010 in binary
octal 5 = 101 in binary
octal 6 = 110 in binary
octal 2 = 010 in binary
octal 4 = 100 in binary
Combine the binary digits from top to bottom: 010 101 110 010 100
The octal number 25624 is equivalent to binary 10101110010100
Padding (if necessary): Since the binary number has 14 digits, we add two leading zeros to make it divisible by 4: 0010101110010100
Group the binary digits into groups of four:
0010 1011 1001 0100
Convert each group of four binary digits into hexadecimal:
binary 0010 = 2 in hex
binary 1011 = B in hex
binary 1001 = 9 in hex
binary 0100 = 4 in hex
Combine the hexadecimal digits: 2B94
The octal number 25624 is equivalent to the hexadecimal 2B94

Convert the octal number 374.3261 to hexadecimal:

Separate the integer part from the fractional part:
Integer part: 374
Fractional part: 3261
Convert the integer parts to their binary equivalents:
octal 3 = 011 in binary
octal 7 = 111 in binary
octal 4 = 100 in binary
Combine the binary digits from top to bottom: 011 111 100
The octal integer 374 is equivalent to binary 11 111 100

Convert the fractional parts to their binary equivalents:
octal 3 = 011 in binary
octal 2 = 010 in binary
octal 6 = 110 in binary
octal 1 = 001 in binary
Combine the binary digits from top to bottom: 011 010 110 001
The octal fraction 3261 is equivalent to the binary fraction 011 010 110 001

Integer part: 11111100
Fractional part: 011010110001

Pad the integer part: Padding by adding leading zeros is unnecessary since the integer part has eight digits.
Group the binary digits into groups of four:
1111 1100
Convert each group of four binary digits into hexadecimal:
binary 1111 = F in hex
binary 1100 = C in hex
Combine the hexadecimal digits: FC
The octal integer 374 is equivalent to the hexadecimal FC

Pad the fractional part: Padding by adding trailing zeros is unnecessary since the fractional part has twelve digits.
Group the binary digits into groups of four:
0110 1011 0001
Convert the fractional part to hexadecimal:
binary 0110 = 6 in hex
binary 1011 = B in hex
binary 0001 = 1 in hex
Combine the hexadecimal digits: FC
The binary fraction 0110 1011 0001 is equivalent to the hexadecimal FC

Next, put the two parts together with the hexadecimal point in between:
Integer part: FC
Fractional part: 6B1
FC.6B1
The hexadecimal representation of the octal number 374.3261 is FC.6B1
Binary to hexadecimal

Octal System (Base-8) Calculators

Conversion

Math


Decimal (Base-10) Binary (Base-2) Octal (Base-8) Hexadecimal (Base-16)
If you have any questions or comments please Contact Us
Privacy Policy
© 1998, VmNet.