convert octal to binary
convert octal to binary
In order to number, we have to follow a few steps. Octal numbers have base 8 and binary
numbers have base 2. We can convert the octal number into decimal and then convert the
decimal number into its equivalent binary number. Also, we can remember the octal to the binary
equivalent table to do the quick conversion. Before we learn the conversion method, let us learn
about both the number systems.
Octal Numbers: Octal numbers are the numbers which have base 8. It is represented as N8. It
uses the digits 0,1, 2, 3, 4, 5, 6 and 7 to represent the numbers in this number system. For
example:
112 8
1008 8
789 , etc.
8
Binary Numbers: Binary numbers have base 2 and are represented by two digits, i.e. 0 and 1.
They are the combination of binary digits, 0’s and 1’s. These numbers have wide application in
the computer system to store data. For example:
0011 2
111101 2
101010 2
the right end of the number. If the number has a decimal part, multiply each digit in the
decimal part by `8 ` when the digit is in the m position from the decimal point.
-m th
Solved Examples
Q.1: Convert 418 to a binary number.
=4*8+1*1
= 32+1
= 33(Decimal number)
Now convert this decimal number into its equivalent binary number. Let us draw a table to show
the conversion of decimal to binary as given below.
16 divided by 2 8 0
8 divided by 2 4 0
4 divided by 2 2 0
2 divided by 2 1 0
1 divided by 2 0 1
=1*8+0*1
=8+0
= 8 (Decimal number)
Now convert this decimal number into its equivalent binary number. Let us draw a table to show
the conversion of decimal to binary as given below.
8 divided by 2 4 0
4 divided by 2 2 0
2 divided by 2 1 0
1 divided by 2 0 1
= (A × 256) + (2 × 16) + (B × 1)
= (10 ×256) + 32 + 11
= 2560 + 43
= 2603(Decimal number)
E16 = E × 160
=E×1
=E
= 48 + 0
= 48(Decimal number)
Therefore,
Octal to Decimal
To convert an octal number to a decimal number we need to multiply each
digit of the given octal with the reducing power of 8.
= 2 × 64+ 1 × 8 + 5 × 1 = 128 + 8 + 5
= 14110
Example 2: Let 125 is an octal number denoted by 1258. Find the decimal
number.
1258 = 1× 82 + 2 × 81 + 5 × 80
= 1 × 64 + 2 × 8 + 5 × 1 = 64+16+5
=8510
0 0
1 1
2 10
3 11
4 100
5 101
6 110
7 111
Example on Binary to Octal
Example: Convert (100010)2 to an octal number.
100→4
and 010→2
Therefore, (100010)2 = 42
Similarly, we can convert an octal number to a binary number with the help
of the table.
Example
Let us understand with the help of an example. We will take the same
example, where we have converted the octal numbers to decimal, such as;
(55)8 = (45)10
Or (55)8 = (2D)16
Example:
Solution:
In hexadecimal system,
7=7
C = 12
F = 15
To convert this into a decimal number system, multiply each digit with the
powers of 16 starting from units place of the number.
= 1792 + 192 + 15
= 1999
From this, the rule can be defined for the conversion from hex numbers to
decimal numbers.
Multiply each digit of the hex number with its corresponding powers of 16
and add them such as:
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
A 10
B 11
C 12
D 13
E 14
F 15
This table will help in representing the digits and letters individually in the
large numbers in base 16 system as explained above.
Read more:
Number system
Hexadecimal to binary conversion
Hexadecimal to octal conversion
Solved Examples
Let us have a look at the examples of conversion of numbers from
hexadecimal (base 16) to the base 10 number system, with detailed
explanations.
Example 1:
Solution:
(1DA6)16
Here,
1=1
D = 13
A = 10
6=6
Thus,
= 7590
Example 2:
Solution:
(E8B)16
Here,
E = 14
8=8
B = 11
Thus,
= 3584 + 128 + 11
= 3723
Stay tuned with BYJU’S – The Learning App and download the app to learn all
Maths-related concepts easily by exploring more videos.
Hexadecimal numbers are represented by base 16. It uses 0 to 9 digits and for higher numbers, it
is represented by English alphabets such as A,B,C,D,E and F.
To convert binary number to hexadecimal is an easy method. We have to group the given binary
number in pair of 4 and then find the equivalent hexadecimal number from the below table.
Binary Hex
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
1000 8
1001 9
1010 A
1011 B
1100 C
1101 D
1110 E
1111 F
Solution: 10010012
= 0100 1001
= 4916