Home  /  Developer Tools / Number Converters

Binary to Decimal Converter

Convert any binary number to decimal in seconds, with a clear explanation of how each bit contributes to the answer.

Last updated 13 November 2026

Binary Number Tool

Your result appears here.
Steps appear here after conversion.

Whole numbers only. Very large numbers are handled exactly with BigInt, so there is no rounding from floating point maths.

Binary is base 2, using only 0 and 1. It is how computers store numbers. Decimal is the base 10 system we use every day. This converter turns a binary string into the decimal number it stands for.

How to Use This Tool

  1. Enter a binary number: type digits 0 and 1 only.
  2. Click Convert: the decimal result appears at once.
  3. Copy the result: paste it into code, a document, or a calculation.

The Formula

Multiply each bit by 2 raised to the power of its position, counting from 0 on the right, then add the values. For example, 101010 is 32 plus 8 plus 2, which is 42.

Worked Examples

BinaryDecimal
101010
10101042
11111111255
100000000001024

Why Use This Tool

Binary values appear in programming lessons, networking, and electronics. Converting them to decimal makes them easier to compare and to use in everyday maths.

What Is Binary and What Is Decimal?

Binary is a number system with base 2. It uses only two digits, 0 and 1, called bits. Every value inside a computer is stored as a string of bits, because the circuits inside a machine have only two states, on and off. Decimal is the number system with base 10 that we use in everyday life. It uses the digits 0 to 9, and each position is worth ten times the position to its right. So the decimal number 245 means 2 hundreds plus 4 tens plus 5 ones. Binary works the same way, except each position is worth two times the position to its right, not ten times. That is the whole idea behind this converter: it reads each bit, works out what it is worth, and adds the values.

How to Convert Binary to Decimal Step by Step

You can convert any binary number to decimal by hand in four steps. The worked example below uses 1010, which converts to 10.

  1. Write the place values: label each bit with its place value, starting at 1 on the right and doubling as you move left: 1, 2, 4, 8, 16, and so on.
  2. Keep only the 1 bits: keep the place values under a 1 bit. Ignore the place values under a 0 bit, because they add nothing.
  3. Add them up: add the kept place values together.
  4. Read the total: the total is the decimal answer.

For 1010, the place values are 8, 4, 2, and 1 from left to right. The 1 bits sit under 8 and 2, so 8 plus 2 is 10. That is why 1010 in binary is 10 in decimal. Try a longer one: 101010 has 1 bits under 32, 8, and 2, so 32 plus 8 plus 2 is 42. Enter either value in the tool above and it shows the same answer with the steps worked out.

The Doubling Method

The doubling method is the fastest way to convert binary to decimal without a calculator. Start at 0, then read the bits from left to right. For each bit, double your running total, then add the bit. Here is 1010 again: start at 0, double to 0 and add 1 to get 1, double to 2 and add 0 to get 2, double to 4 and add 1 to get 5, double to 10 and add 0 to get 10. The answer is 10. The method works for any length, and it needs no powers table, only doubling and adding. If you convert binary numbers often, this is the method worth learning.

Powers of 2 Table

Each bit position in a binary number is worth a power of 2. The table below lists the first 17 powers, from 2 to the power 0 up to 2 to the power 16. Use it to work out any binary number up to 17 bits by hand.

Power of 2Value
2^01
2^12
2^24
2^38
2^416
2^532
2^664
2^7128
2^8256
2^9512
2^101024
2^112048
2^124096
2^138192
2^1416384
2^1532768
2^1665536

Binary to Decimal Conversion Table 0 to 31

The table below shows every whole number from 0 to 31 in binary and in decimal. Learn the first 16 rows and you can read any 4 bit value at a glance. Note that 1111 is 15, the largest 4 bit value, and 11111 is 31, the largest 5 bit value.

DecimalBinary
00
11
210
311
4100
5101
6110
7111
81000
91001
101010
111011
121100
131101
141110
151111
1610000
1710001
1810010
1910011
2010100
2110101
2210110
2310111
2411000
2511001
2611010
2711011
2811100
2911101
3011110
3111111

Common Mistakes

Where Binary Values Appear

Binary numbers show up in far more places than programming lessons. A byte is a group of 8 bits, and it can hold any whole number from 0 to 255. That is why 255 is the largest value you see in so many places: the highest value of a color channel in RGB, the largest number in one part of an IP address, and the maximum value of an unsigned byte in code. An IP address such as 192.168.1.1 is four bytes written in decimal, and each part converts back to 8 bits. In networking, subnet masks are also binary values written in decimal, and working out how many addresses a network holds starts with counting bits. In files, every byte on disk is a binary value from 0 to 255, and text encodings such as ASCII map each character to one of those values. To turn text into binary, use the Text to Binary Converter. To turn text into other bases, use the Text to Hex Converter or the Text to ASCII Converter. To go the other way, from decimal back to binary, use the Decimal to Binary Converter. For other bases, use the Binary to Hex Converter, the Hex to Decimal Converter, the Decimal to Hex Converter, the Octal to Decimal Converter, the Binary to Octal Converter, or the Hex to Binary Converter. For octal, use the Decimal to Octal Converter, the Octal to Binary Converter, the Octal to Hex Converter, or the Hex to Octal Converter.

Frequently Asked Questions

Yes. It is free, needs no sign up, and runs in your browser.

Only 0 and 1. Any other digit shows a plain error message.

101010 in binary is 42 in decimal, because 32 plus 8 plus 2 is 42.

Yes. It uses BigInt, so long binary strings convert exactly.

No. It works in any modern browser on a phone, tablet, or computer.

1010 in binary is 10 in decimal, because 8 plus 2 is 10.

11111111 in binary is 255 in decimal. It is the largest value one byte can hold, because 128 plus 64 plus 32 plus 16 plus 8 plus 4 plus 2 plus 1 is 255.

1111 in binary is 15 in decimal, because 8 plus 4 plus 2 plus 1 is 15.

No. This tool converts whole numbers only. A value with a point, such as 101.11, is not accepted. Convert the whole part and the fractional part separately, or use a converter that supports binary fractions.

No. This tool reads binary as an unsigned whole number, so the top bit is a place value, not a sign. For example, 11111111 gives 255 here, not minus 1. If you need a signed reading, use a two's complement converter.