Binary to Decimal Converter
Last Updated :
25 Jul, 2024
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.
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.

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

We keep on increasing the power of 2 as long as number of digits in binary number increases.
Example 3: Convert (11100)2 = (?)10

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.
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 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.
2 x 2 + 0 = 4 + 0 = 4
4 x 2 + 0 = 8 + 0 = 8
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.
0 x 2 + 1 = 0 + 1 = 1
1 x 2 + 1 = 2 + 1 = 3
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:

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,
Similar Reads
Maths Calculators GeeksforGeeks's free online math calculator is a one-stop solution for all your complex and tough mathematical problems. It is a math solver tool that will save you a lot of time while doing complex calculations. GeeksforGeeks Calculator is a key to solving challenging math equations and tasks, maki
3 min read
CM to Inches Converter Centimeter-to-inch conversion is a simple yet essential calculation used in various fields, including construction, design, and everyday measurements. Here is a handy conversion tool for converting centimeters (cm) to inches, helping you make accurate measurements effortlessly:Centimeters to Inches
4 min read
Inches to Centimeters Converter - Inches to Cm Inches to cm converter is a free online tool that calculates value in centimeters after taking Inches value in Input. GeeksforGeeks Inches to cm converter is the fastest online tool to convert Inches to Centimeters. Use the tool below to save your time on calculations and get accurate and fast resul
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
6 min read
cm to mm Converter Centimeter(cm) to Millimeter(mm) Converter is a free online tool to convert cm to mm. Converting between cm to mm is a common task in everyday life. So, GeeksforGeeks provides a user-friendly and efficient cm to mm Conversion tool to simplify this process and assure accuracy. It is an easy-to-use ge
5 min read
Millimeter to Inches (mm to inch) Converter Millimeter to Inches (mm to inch) Converter is a free online tool to convert mm to inch. Converting between mm to inch is a common task in everyday life. So, GeeksforGeeks provides a user-friendly and efficient mm-to-inch calculator tool to simplify this process and assure accuracy. It is an easy-to
5 min read
Millimeter to Centimeter Converter Millimeter to centimeter calculator is a free online tool to convert Millimeter to Centimeter. This geeksforgeeks online Millimeter to centimeter converter makes the calculation faster and it displays the conversion in a fraction of seconds. It is an easy-to-use general purpose calculator that makes
4 min read
MM to Feet Converter (Millimeter to Feet) 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 sol
5 min read
Meters to Feet (m to ft) Converter Meter to Feet Calculator is a free tool prepared by GeekforGeeks that converts the given value of the meter(m) into the value of feet(ft). It is a fast and easy-to-use tool that helps students solve various problems.Table of ContentDefinition of Meter and FootSteps to Use the Meter to Feet Calculato
4 min read
Metric Tons to Kilograms Converter The Metric Tons to Kilograms Converter is a free online tool to convert Metric Tons to Kilograms. Converting between Metric Tons to kilograms is a common task in everyday life. So, GeeksforGeeks provides a user-friendly and efficient online Metric Tons to kg Conversion tool to simplify this process
5 min read