Octal Number System with Conversions

Octal Number System

Comparison to Binary numbers, because if we present any number in binary, it will be long, while in the case of an octal number, that array of numbers will be shorter.

  • The numbers are formed using 8 digits, i.e., 0, 1, 2, 3, 4, 5, 6, 7.
  • It is useful for representing file permissions in Unix/Linux operating systems.
  • Each digit in the number is at a specific place value that is powers of 8.
  • From right to left – as powers of 8, i.e., 80, 81, 82, etc.

(741) is written as

782 + 481 + 180

764 + 48 + 11

481

Octal to Decimal Conversion

Octal number uses base 8, whereas decimal has base 10. To convert from octal, use the following steps.

Step 1: Identify the Positional Weights

Each digit in an octal number has a weight based on its position, starting from the right (before the decimal point) at 80.

  • The 1st digit from the right is 80 = 1
  • The 2nd digit from the right is 81 = 8
  • The 3rd digit from the right is 82 = 64
  • The 4th digit from the right is 83 = 512

Step 2: Multiply Each Digit

Multiply each digit of the octal number by its corresponding power of 8, increasing from LSB to MSB

Step 3: Sum the Results

Add all the products together to get the final decimal value.

145 octal to decimal

Octal to Binary Conversion

To Convert octal number into Binary, use the following octal binary table. Write the corresponding value of each octal into binary directly.

By using the binary value of each octal digit, you can convert Octal to Binary directly

145 octal to Binary

Octal to Hexadecimal Conversion

The octal number system cannot be converted directly to hexadecimal. To convert, we have to go through either the Decimal or the Binary system. That means first we have to convert octal into decimal or binary, then that decimal or binary needs to be converted into hexadecimal.

Octal to Hexadecimal conversion using Decimal

Follow these steps to convert octal into decimal

Step 1: Identify the Positional Weights

Each digit in an octal number has a weight based on its position, starting from the right (before the decimal point) at 80.

  • The 1st digit from the right is 80 = 1
  • The 2nd digit from the right is 81 = 8
  • The 3rd digit from the right is 82 = 64
  • The 4th digit from the right is 83 = 512

Step 2: Multiply Each Digit

Multiply each digit of the octal number by its corresponding power of 8, increasing from LSB to MSB

Step 3: Sum the Results

Add all the products together to get the final decimal value.

Now Convert Decimal into Hexadecimal

To convert a decimal to Hexa decimal, here are some steps.

  • Divide the decimal number by 16.
  • Record the remainder (from 0 to 15, where 0-9 is denoted by a number and from 10 to 15 represented by A-F, respectively).
  • Divide the quotient again by 16 and repeat until the quotient becomes 0.
  • Read the remainders backward (from last division to first) to get the octal number.

After these steps Octal number is first converted into Decimal, then Hexadecimal. In this way, we can convert octal into Decimal.

Octal to Hexadecimal conversion using Binary

To use this method, first convert octal into binary, then that binary into Hexadecimal

 Octal to Binary

To convert an octal number into Binary, use the following octal binary table. Write the corresponding value of each octal into binary directly.

OctalBinary
0000
1001
2010
3011
4100
5101
6110
7111

Binary to Hexadecimal Conversion

To convert from binary (Base 2) to hexadecimal (Base 16), follow these steps:

  1. Group into Fours: Starting from the right (the least significant bit), divide the binary number into groups of four bits.
  2. Pad with Zeros: If the leftmost group has fewer than four bits, add leading zeros to complete the group.
  3. Assign Hex Values: Convert each 4-bit group into its equivalent hexadecimal digit (0-9, A-F).

Use the positional weights (23=8, 22=4, 21=2, 20=1) to convert each 4-bit group into its equivalent hexadecimal value (0 through 9 & A-F).

Hexadecimal Binary
00000
10001
20010
30011
40100
50101
60110
70111
81000
91001
10-A1010
11-B1011
12-C1100
13-D1101
14-E1110
15-F1111

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top