# How to convert hexadecimal to octal ?

Using the below two methods, we can convert the hexadecimal number system into the octal number system.

1. Convert the hexadecimal number into binary and then convert the binary into octal.

2. Convert the hexadecimal number into decimal and then convert the decimal into octal.

Let's convert the hexadecimal number into the octal number system.

Decimal Number System
Octal Number System
Binary Number System

Let's convert (ff)16 into Octal.

#### Step 1: Convert (ff)16 into Binary

In order to convert the hexadecimal number into binary, we need to express every hexadecimal value using 4 binary bits.

Binary equivalent of f is (1111)2

= (ff)16

= (1111)(1111)

= (11111111)2

#### Step 2 : Convert (11111111)2 into Octal

In order to convert the binary number into octal, we need to group every 3 binary bits and calculate the value[From left to right].

#### (11111111)2 in Octal

= (11111111)2

= (11)(111)(111)

= (377)8

This method is relatively easy compared to the below method.

#### Step 1 : Convert (ff)16 into Decimal

f equivalent decimal is 15.

= 15*161+15*160

= 240+15

= (255)10

```8|255
----
8|31  - 7
----
8|3   - 7

= (377)8
```