Open In App

Binary to Decimal Converter

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Share
Report issue
Report

Binary to Decimal Converter is a free online tool to convert binary to decimal. Converting between binary to decimal is a common task in everyday life. Here, GeeksforGeeks provides a free user-friendly, and efficient online binary decimal Conversion tool to simplify this process and ensure accuracy. It is a fast, easy-to-use general-purpose calculator that can be used in any field such as computer science etc. Furthermore, it also helps students and working professionals to solve a wide range of day-to-day problems.

Binary to Decimal Converter

The binary-to-decimal converter is added below. This bin-to-dec converter is used to convert binary values to decimal values.

What is Binary to Decimal?

Binary To Decimal Conversion is used to convert the binary value to the decimal values. Binary numbers are the numbers that have a base of 2 and are used in computer programming. Whereas Decimal numbers are the numbers that have a base of 10 and used in normal day to day operations.

What is Binary System?

Binary System is the system of writing number using only two numbers that are, 0 and 1. The base of binary number is 2. This system was first used by ancient Indian, Chinese, and Egyptian people for various purposes. The binary number system is used in electronic and computer programmings.

What is Decimal System?

The Decimal Numbers System is the number system that is used by us in our daily lives. The base of Decimal numbers is 10 and it uses 10 digits that are, 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.

How to use Binary to Decimal Calculator?

We can easily use the binary-to-decimal calculator by following the steps discussed below,

Step 1: Enter the given value in the binary input field.

Step 2: Click on the convert button to convert the binary value into the decimal value.

Step 3: The value shown as the result is the required value in the decimal form.

Binary to Decimal Formula

To convert a binary number to decimal we need to perform a multiplication operation on each digit of a binary number from right to left with powers of 2 starting from 0 and add each result to get the decimal number of it. 

Decimal Number = nth bit × 2n-1

Binary to Decimal Formula

n = bnq + bn-1qn-2 +………+ b2q2 +b1q1 +b0q0 + b-1q-1 + b-2q-2 

Where,

  • N is Decimal Equivalent
  • b is the Digit
  • q is the Base Value

How to Convert Binary to Decimal

You just have to follow the below steps to convert binary numbers to their decimal equivalent.

Step 1: Write the binary number and count the powers of 2 from right to left (starting from 0).

Step 2: Write each binary digit(right to left) with corresponding powers of 2 from right to left, such that MSB or the first binary digit will be multiplied by the greatest power of 2.

Step 3: Add all the products in the step 2

Step 4: The answer is our decimal number.

This can be better explained using the below examples.

Binary to Decimal Conversion

Binary to Decimal conversion is achieved using the two steps that are,

  • Positional Notation Method
  • Doubling Method

Now let’s learn about them in detail.

Method 1: Using Positions

Binary to Decimal Conversion can be achieved using the example added below.

Example 1: Let’s consider a binary number 1111. We need to convert this binary number to a decimal number.

As mentioned in the above paragraph while converting from binary to decimal we need to consider each digit in binary number from right to left.

Convert 1111 to Decimal

By this way, we can do binary to decimal conversion.

Note: We represent any binary number with this format (xxxx)2 and decimal in (xxxx)10 format.

Example 2: Convert (101010)2 = (?)10

Convert 101010 to decimal

We keep on increasing the power of 2 as long as number of digits in binary number increases.

Example 3: Convert (11100)2 = (?)10

Convert 11100 to Decimal

Resultant Decimal number = 0+0+4+8+16 = 28

So (11100)2 = (28)10

Also Check,

Method 2: Doubling Method

To explain this method we will consider an example and try to solve that stepwise.

Example 1: Convert Binary number (10001)2 to decimal.

Similar to the above approach, In this approach also consider each digit but from left to right and performs step-wise computations on it.

1 0 0 0 1

Step-1 First we need to multiply 0 with 2 and add the 1st digit in binary number.

0 x 2 + 1 = 0 + 1 = 1

Step-2 Now use the result of above step and multiply with 2 and add the second digit of binary number.

1

0

0

0

1

1 x 2 + 0 = 2 + 0 = 2

The same step 2 is repeated until there will be no digit left. The final result will be the resultant decimal number.

1

0

0

0

1

2 x 2 + 0 = 4 + 0 = 4

1

0

0

0

1

4 x 2 + 0 = 8 + 0 = 8

1

0

0

0

1

8 x 2 + 1 = 16 + 1 = 17

So we performed step 2 on all remaining numbers and finally, we left with result 17 which is a decimal number for the given binary number.

So (10001)2 = (17)10

Example 2: Convert (111)2 to decimal using doubling approach.

1

1

1

0 x 2 + 1 = 0 + 1 = 1

1

1

1

1 x 2 + 1 = 2 + 1 = 3

1

1

1

3 x 2 + 1 = 6 + 1 = 7

The final result is 7 which is a Decimal number for 111 binary numeral system. So (111)2 = (7)10

These are the 2 approaches that can be used or applied to convert binary to decimal.

How to Read a Binary Number?

Binary numbers are read by separating them into separate digits. Each digit in binary is represented using 0 and 1 and they are the powers of 2 starting from left hand side and then the power is gradually increased from 0 to (n-1).

Binary to Decimal Conversion Table

The given binary to decimal conversion table will help you to convert binary to decimal.

Decimal Number

Binary Number

0

0

1

1

2

10

3

11

4

100

5

101

6

110

7

111

8

1000

9

1001

10

1010

11

1011

12

1100

13

1101

14

1110

15

1111

16

10000

17

10001

18

10010

19

10011

20

10100

21

10101

22

10110

23

10111

24

11000

25

11001

26

11010

27

11011

28

11100

29

11101

30

11110

31

11111

32

100000

64

1000000

128

10000000

256

100000000

Conclusion

In conclusion, the Binary to Decimal Calculator is a free online tool prepared by GeekforGeeks that converts the given value of the binary number system into the value of a decimal number system . It is a fast and easy-to-use tool that helps students solve various problems.

Read More,

Binary to Decimal Conversion Examples

Example 1: Convert (111)2 to Decimal.

Solution:

We have (111)2 in binary

⇒ 1 ⨯ 22 + 1 ⨯ 21 + 1 ⨯ 20

= 4 + 2 + 1 = 7

Example 2: Convert (10110)2 to Decimal.

Solution:

We have (10110)2 in Binary

1 ⨯ 24 + 0 ⨯ 23 + 1 ⨯ 22 + 1 ⨯ 21 + 0 ⨯ 20

= 16 + 4 + 2 = 22

Example 3: Convert (10001)2 to Decimal.

Solution:

We have (10001)2 in Binary

⇒ 1 ⨯ 24 + 0 ⨯ 23 + 0 ⨯ 22 + 0 ⨯ 21 + 1 ⨯ 20

= 16 + 0 + 0 + 0 + 1 = 17

Example 4: Convert (1010)2 to Decimal.

Solution:

We have (1010)2 in Binary

⇒ 1 ⨯ 23 + 0 ⨯ 22 + 1 ⨯21 + 0 ⨯ 20

= 0 + 8 + 2 + 0 = 10

Example 5: Convert (10101101)2 to Decimal.

Solution:

binary-to-decimal

Convert Binary to Decimal (bn to dec)

Q1: Convert (11000)2 to Decimal.

Q2: Convert (10111)2 to Decimal.

Q3: Convert (111110000)2 to Decimal.

Q4: Convert (00011)2 to Decimal.

Q5: Convert (110011)2 to Decimal.

Also Check,

Binary to Decimal(bn to dec) Conversion-FAQs

1. What is Binary System?

Binary describes a numbering system in which there exist only two possible values for each digit 0 and 1. Each digit is expressed with the help of two digits only 0 and 1.

2. What is Decimal System?

The decimal number system is the base 10 number system. It uses the digits from 0 to 9 to represent values. 

3. What is Binary to Decimal Conversion Formula?

Decimal Number = nth bit * 2n-1

Binary to Decimal Formula: n = bnq + bn-1qn-2 +………+ b2q2 +b1q1 +b0q0 + b-1q-1 + b-2q-2 

Where,

  • N is Decimal equivalent
  • b is the Digit
  • q is the Base value

4. How to Convert from Binary to Decimal?

To convert Binary to Decimal use the Binary to Decimal converter added above in the article.

5. What is the Binary Number 01010101 to a Decimal?

The binary number (01010101) in decimals is equal to 85, i.e. (01010101)2 = (85)10

6. What is 1001 0011 in Decimal?

The value of 1001 0011 in decimal is 204, i.e. (1001 0011)2 = (204)10

7. What is Binary Number for 3?

The binary Number for 3 is 11, i.e. (3)10 = (11)2

8. What is Binary Number for 6?

The binary Number for 6 is 11, i.e. (6)10 = (110)2

9. What is Binary Number for 8?

The binary Number for 8 is 11, i.e. (8)10 = (1000)2

10. What is Binary Number for 7?

The binary Number for 7 is 11, i.e. (7)10 = (111)2



Last Updated : 17 Nov, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads