Open In App

Binary to Decimal Converter

Last Updated : 02 May, 2024
Improve
Improve
Like Article
Like
Save
Share
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. 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 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 are used in normal day-to-day operations.

What is Binary System?

Binary System is a system of writing numbers using only two numbers that are, 0 and 1. The base of the 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 programming.

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

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.

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. 

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

How to Convert from Binary to Decimal?

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

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

What is 1001 0011 in Decimal?

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

What is Binary Number for 3?

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

What is Binary Number for 6?

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

What is Binary Number for 8?

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

What is Binary Number for 7?

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



Previous Article
Next Article

Similar Reads

Decimal to Binary Converter
Decimal to Binary Converter is a free online tool to convert Decimal to Binary. Converting between Decimal to Binary is a common task in the everyday life of CS students or programmers. So, GeeksforGeeks provides a free user-friendly, and efficient online decimal binary Conversion tool to simplify this process and ensure accuracy. It is a fast, eas
9 min read
Decimal to Hexadecimal Converter
Decimal to Hexadecimal Calculator is a free online tool prepared by GeekforGeeks that converts the given value of the decimal number into the value of the hexadecimal number. It is a fast and easy-to-use tool that helps students solve various problems. Table of ContentHow to use Decimal to Hexadecimal Calculator?What is Decimal to Hexadecimal Conve
7 min read
MM to Feet Converter: Millimeter to Feet Converter, Formula, Examples
1 Feet is equal to 0.0033 feet. To make the conversion of MM to Feet easy, below is the MM to Feet online converter tool. It is a fast, easy-to-use general purpose calculator that can be used in any field, such as engineering, etc. Furthermore, It also helps students and working professionals to solve a wide range of day-to-day problems. Along with
4 min read
Feet to Centimeters Converter (feet to cm Converter)
Feet to Centimeter Calculator Converter is a free online tool that is used to convert the measurement in feet to centimeters and vice versa. The ft to cm converter calculator prepared at geeksforgeeks given below easily calculates the length in feet to length in centimeters. Table of Content Feet to Centimeters Converter (ft to cm Converter) Feet D
6 min read
Difference Between Decimal and Binary Number System
Decimal Number is defined by the number which has a whole number and the fractional part separated by a decimal point. While Binary Number is defined by a number which is expressed as in the base-2 numeral system. It is always written in the form of 0 and 1. In math, a system that is used to represent numbers in different forms is called number sys
7 min read
How to write a rational number as a repeating decimal?
There are different sorts of numbers that are included in the number system, such as prime numbers, odd numbers, even numbers, rational numbers, whole numbers, and so on. These numbers can be expressed in a variety of ways, including figures and words. For example, in the form of figures, the numbers 50 and 75 can alternatively be written as fifty
5 min read
Decimal Expansion of Real Numbers
The Combination of a set of rational and irrational numbers is called real numbers. All the real numbers can be expressed on the number line. The numbers other than real numbers that cannot be represented on the number line are called imaginary numbers (unreal numbers). They are used to represent complex numbers. Below is a classification diagram o
5 min read
Decimal Expansions of Rational Numbers
Real numbers are simply the combination of rational and irrational numbers, in the number system. In general, all the arithmetic operations can be performed on these numbers and they can be represented in the number line, also. So in this article let's discuss some rational and irrational numbers and their proof. Rational Numbers A number of the fo
6 min read
How to convert a whole number into a decimal?
The number system is defined as the system to represent different numbers. It is a mathematical representation of the given set of numbers by using digits or different numbers in a fixed manner. It helps to represent every number uniquely and shows the arithmetic structure of the figures. It also helps to operate mathematical operations such as add
4 min read
What is the biggest 3 digit number in decimal system?
The method to represent and work with numbers is known as the number system. A number system is a system of writing to represent numbers. It is the mathematical notation used to represent numbers of a given set by using digits or other symbols. It allows us to operate arithmetic operations such as division, multiplication, addition, subtraction. So
5 min read