Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Converting Numbers from One Base to Another

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

How to Convert Base Using Division and Multiplication Methods

A base (also known as radix) of a number system tells us about the unique or different symbols and notations it uses to represent a value. For example, the base 8 tells us that it uses 8 different numbers i.e. 0 to 7 to represent a value. The most commonly used base in the number system is the base 10 which uses 10 different digits i.e. 0 to 10 to represent a value. Bases can be 0, positive, negative, complex, and non-integral. Other frequently used bases are base 2, base 8, and base 16. They are used in computing and are known as binary, octal, and hexadecimal respectively.

We can convert one base into the other base by following the simple conversion steps. Here, we will discuss the steps on how to convert a number from decimal to octal, octal to decimal, octal to binary, binary to octal, octal to hexadecimal, hexadecimal to octal, and so on.

Let us begin with the octal to decimal conversion


Decimal to Octal Conversion

To convert decimal to octal, we use the following steps:

The steps given below show how to convert a number from the decimal system to the octal system.

Example

Convert 560₁₀ into the octal system 

Step 1: Observe the base of the required number.

As we have to convert the given decimal number into the octal number system, the base of the required number is 8.

Step 2: Divide the given decimal number by the base of the required number and list down the quotient and remainder in the form of quotient-remainder.

Repeat the process (dividing the quotient value again by base 8)  till we get the quotient value less than the base.


[Image will be uploaded soon]


∴ 560₁₀ = 1060₈


Octal to Decimal Conversion

To convert a number from an octal system to a decimal system, multiply each digit of the given octal number by the reducing power of 8.

Let us discuss octal to decimal conversion through an example:

Example:

Convert 764₈ into the decimal system 

764₈ = 7 x 8² + 6 x 8¹ +  4 x

         = 7 x 64 + 6 x 8 + 4 x 1

          = 448 + 48 + 4

           =  500

∴ 764₈ = 500₁₀


Binary to Octal Conversion

To convert a number from binary system to the octal system, we use the following binary to the octal table:

Octal Numbers

Equivalent Binary Numbers

0

000

1

001

2

010

3

011

4

100

5

101

6

110

7

111


Example:

Convert 1010111100₂ to octal number system

To convert binary to octal, we will group the binary digits by three, starting from the far right to left. You can add trailing zeros to the left of the last digit to complete the last group of three if required. Then replace each group of three digits with the equivalent octal digit. 

1010111100₂ in a group of 3 is represented by \[\overline{001}\] \[\overline{010}\] \[\overline{111}\] \[\overline{100}\]. Here we have added trailing zeros to the left of the last digit to complete the last group of three.

Let us now convert base₂ to base₈ 

001

010

111

100

1

2

7

4


∴ 1010111100₂  = 1274₈


Octal to Binary Conversion

To convert a number from the octal system to the decimal number system, we simply need to follow the 2 steps given below:

  1. Convert the given octal number into the decimal number system.

  2. Convert the decimal number that is obtained in Step 1 into the binary number.

Let us understand octal to binary conversion through an example:

Example: Convert 205₈ into the decimal number system.

Step 1: Convert a number from the octal system to the decimal system

205₈ = 2 x 8² + 0 x 8¹ +  5 x

         = 2 x 64 + 0 x 8 + 5 x 1

          = 128 + 0 + 5

           =  133₁₀

Step 2: Convert a decimal number that is obtained in the previous step into the binary system.

Decimal Number ÷ 2

Quotient

Remainder

133 ÷ 2

66

1

66 ÷ 2

33

0

33 ÷ 2

16

1

16 ÷ 2

8

0

8 ÷ 2

4

0

4 ÷ 2

2

0

2 ÷ 2

1

0

1 ÷ 2

0

1


To get the equivalent binary number, we will list down all the remainder values from bottom to top.

∴ 205₈  = 10000101₂


Octal to Hexadecimal Conversion

To convert octal to hexadecimal or hexadecimal to octal, we need to memorize the table given below:


Octal Numbers

Hexadecimal Numbers

0

0000

1

0001

2

0010

3

0011

4

0100

5

0101

6

0110

7

0111

8

1000

9

1001

A

1010

B

1011

C

1100

D

1101

E

1110

F

1111


Octal to Hexadecimal Conversion Steps

To convert a  number from the octal system to the decimal number system, we simply need to follow the 2 steps given below:

  1. Convert the given number from the octal system into the binary number system.

  2. Convert the binary number that is obtained in Step 1 into the hexadecimal number system.

Let us understand octal to hexadecimal conversion through an example.

Example: Convert 536₈ into the hexadecimal decimal number system

Step 1: Convert the given number from the octal system into the binary number system

To convert a number from the octal system to the binary number system, we simply need to follow the 2 steps given below:

  1. Convert each octal digit into the equivalent three-digit binary number. Each of the digits must be treated as a decimal value.

  2. Combine these groups of 3 binary values into a single binary number.

Convert each octal digit into the three-digit binary number as shown below:

5

3

6

101₂

011₂

110₂


 \[\overline{101}\] \[\overline{011}\] \[\overline{110}\]

Combine these groups of 3 binary values (starting from the far right)  into a single binary number.

536₈ = 101011110₂

Step 2: Convert the binary number that is obtained in the previous step into the hexadecimal number system.

101011110₂

To convert a number from binary system to the hexadecimal system, we will group the binary digits by four, starting from the far right and proceeding to the left as shown below. You can add trailing zeros to the left of the last digit to complete the last group of four if required. 

101011110₂ in a group of 4 is represented by as \[\overline{0001}\] \[\overline{0101}\] \[\overline{1110}\]. Here we have added trailing zeros to the left of the last digit to complete the last group of four.

Now, let us convert the 1101011110₂ into the base₁₆.

0001

0101

1100

1

5

E


∴ 536₈  = 15E₁₆


Hexadecimal to Octal Conversion

To perform the hexadecimal to octal conversion, we simply need to follow the below-mentioned steps.

  • Write each of the given hexadecimal number digits into its equivalent binary number.

  • Combine and make the groups of binary bits, each group containing 3 bits from right to left. You can add trailing 0’s to the left of the last digit if there are less than 3 digits in the last group.

  • Find the equivalent hexadecimal number of each binary group. 

Let us understand hexadecimal to octal conversion, through an example.

Example: Convert (1BC)₁₆ into the octal number system

Step 1: Convert each hexadecimal digit into the four-digit binary number as shown below:

1

B

C

0001 

1011

1100


Step 2: Combine and make the groups of binary bits, each group containing 3 bits from right to left.

000, 101 , 111,  100

Step 3: Now, write down the equivalent hexadecimal number of each binary group of 3 bits.

0

6

7

4

000

101

111

100


∴ IBC₁₆  = 674₈

FAQs on Converting Numbers from One Base to Another

1. What does it mean to convert base in mathematics?

To convert base means to express a number from one number system (base) into another, such as from base 10 to base 2. A base (or radix) tells how many digits are used in a number system.

  • Base 10: digits 0–9 (decimal system)
  • Base 2: digits 0–1 (binary system)
  • Base 8: digits 0–7 (octal system)
  • Base 16: digits 0–9 and A–F (hexadecimal system)
Base conversion changes the representation of a number but not its value.

2. How do you convert a decimal number to binary?

To convert a decimal number to binary, repeatedly divide the number by 2 and record the remainders.

  • Step 1: Divide the decimal number by 2.
  • Step 2: Write down the remainder (0 or 1).
  • Step 3: Divide the quotient again by 2.
  • Step 4: Repeat until the quotient is 0.
  • Step 5: Read the remainders from bottom to top.
Example: Convert 13 to binary.
  • 13 ÷ 2 = 6 remainder 1
  • 6 ÷ 2 = 3 remainder 0
  • 3 ÷ 2 = 1 remainder 1
  • 1 ÷ 2 = 0 remainder 1
Binary form = 1101.

3. How do you convert binary to decimal?

To convert binary to decimal, multiply each digit by its corresponding power of 2 and add the results.

  • Write powers of 2 from right to left: 2⁰, 2¹, 2², 2³, ...
  • Multiply each binary digit by its power of 2.
  • Add all the products.
Example: Convert 1011₂ to decimal.
  • 1×2³ + 0×2² + 1×2¹ + 1×2⁰
  • = 8 + 0 + 2 + 1
  • = 11

4. What is the formula for converting any base to decimal?

The formula for converting a number from base b to decimal is ∑ (digit × bposition). Each digit is multiplied by the base raised to its positional power (starting from 0 on the right).

  • Example: Convert 324₅ to decimal.
  • = 3×5² + 2×5¹ + 4×5⁰
  • = 75 + 10 + 4
  • = 89
This positional notation works for all number systems.

5. How do you convert from decimal to any other base?

To convert a decimal number to base b, repeatedly divide the number by b and record the remainders.

  • Divide the number by the new base.
  • Write the remainder.
  • Continue dividing the quotient by the base.
  • Stop when the quotient becomes 0.
  • Read remainders from bottom to top.
Example: Convert 25 to base 3.
  • 25 ÷ 3 = 8 remainder 1
  • 8 ÷ 3 = 2 remainder 2
  • 2 ÷ 3 = 0 remainder 2
Answer = 221₃.

6. How do you convert between two non-decimal bases?

To convert between two non-decimal bases, first convert to decimal (base 10), then convert to the new base.

  • Step 1: Convert the original number to decimal.
  • Step 2: Convert that decimal number to the target base.
Example: Convert 101₄ to base 3.
  • 101₄ = 1×4² + 0×4¹ + 1×4⁰ = 16 + 1 = 17
  • 17 in base 3 = 122₂₃
This two-step method works for any base conversion.

7. What is base 16 and how do you convert decimal to hexadecimal?

Base 16 (hexadecimal) is a number system that uses 16 digits (0–9 and A–F). To convert decimal to hexadecimal, divide repeatedly by 16.

  • A = 10, B = 11, C = 12, D = 13, E = 14, F = 15
  • Divide the decimal number by 16.
  • Record the remainder (convert values 10–15 to letters).
Example: Convert 26 to hexadecimal.
  • 26 ÷ 16 = 1 remainder 10
  • 10 = A
Answer = 1A.

8. Why do we use different number bases?

Different number bases are used because they are useful in different fields like computing, electronics, and mathematics.

  • Binary (base 2) is used in computers.
  • Octal (base 8) and hexadecimal (base 16) simplify binary representation.
  • Decimal (base 10) is used in everyday calculations.
Each base provides a convenient way to represent and process numbers efficiently.

9. What are common mistakes when converting bases?

Common mistakes in base conversion include using incorrect powers and reading remainders in the wrong order.

  • Forgetting that positions start from power 0 on the right.
  • Reading division remainders from top to bottom instead of bottom to top.
  • Using digits not allowed in a base (e.g., 8 in base 8).
  • Incorrectly converting hexadecimal letters.
Carefully following the correct steps prevents these errors.

10. Can you give a simple worked example of converting base 2 to base 8?

To convert binary to octal, group binary digits in sets of three from right to left and convert each group to decimal.

  • Example: Convert 110101₂ to base 8.
  • Group: 110 101
  • 110₂ = 6
  • 101₂ = 5
Answer = 65₈. Grouping works because 8 = 2³.