# Hexadecimal to Octal Converter

Enter a hexadecimal number to convert it to octal.

## Octal Number:

## On this page:

## How to Convert Hex to Octal

There are a couple of steps to take in order to convert hex to octal. The first step to converting hex to octal is to convert hex to decimal. Then, you can convert from decimal 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 16^{0}. The digit one position from the right is equal to the digit times 16^{1}.

decimal number_{10} = (d_{0} × 16^{0}) + (d_{1} × 16^{1}) + … + (d_{n – 1} × 16^{n – 1})

In the formula above, d_{0} is the hex digit furthest to the right, d_{1} is the digit one position from the right, and d_{n – 1} is the digit furthest to the left.

### Step Two: Convert Decimal to Octal

To convert from decimal to octal, use long division to divide the decimal number by 8. The result should be left with 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 |
---|---|

0 | 0 |

1 | 1 |

2 | 2 |

3 | 3 |

4 | 4 |

5 | 5 |

6 | 6 |

7 | 7 |

8 | 10 |

9 | 11 |

a | 12 |

b | 13 |

c | 14 |

d | 15 |

e | 16 |

f | 17 |

10 | 20 |

## 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.