# Hex to Octal

This converter converts the given hex number to octal number.

## Hex to Octal

Hexadecimal to octal conversion is the process of converting a hexadecimal (base-16) number into its octal (base-8) representation.

In the hexadecimal system, numbers are represented using the digits 0 through 9 and the letters A to F.

## Steps to Convert Hexadecimal to Octal

Here are the steps to convert a hexadecimal number to octal:

- Convert each hexadecimal digit to its equivalent 4-bit binary representation.
- Group the binary digits into sets of three, starting from the right.
- Convert each group of three binary digits to its equivalent octal representation.
- If necessary, add leading zeros to make each group have three digits.
- Concatenate the octal representations to get the final result.

## Example

Let's take an example to illustrate the process. Suppose we want to convert the hexadecimal number **1A3** to octal:

- Convert each hexadecimal digit to its 4-bit binary representation:
**0001 1010 0011**. - Group the binary digits into sets of three:
**000 110 100 011**. - Convert each group to octal:
**0 6 4 3**. You may leave out the leading zeroes making the answer**643**.

Therefore, **1A3** in hexadecimal is equal to **643** in octal.