Binary Translator

Binary to Decimal Converter

To convert binary to decimal, multiply each digit by its power of 2, counting from 2^0 on the right, and add the results. Enter a binary number below to see every step and the decimal answer.

Decimal result

202

Working

  1. Write the place values from the right, starting at 2^0: the 8 digits cover 2^7 down to 2^0.
  2. 1 × 2^7 = 128
  3. 1 × 2^6 = 64
  4. 1 × 2^3 = 8
  5. 1 × 2^1 = 2
  6. Add the place values of the 1 digits: 128 + 64 + 8 + 2 = 202.

Example: 11001010 to decimal

  • Write the place values from the right, starting at 2^0: the 8 digits cover 2^7 down to 2^0.
  • 1 × 2^7 = 128
  • 1 × 2^6 = 64
  • 1 × 2^3 = 8
  • 1 × 2^1 = 2
  • Add the place values of the 1 digits: 128 + 64 + 8 + 2 = 202.
  • Result: 202

The positional method

Binary is a positional system with base 2. The rightmost digit is worth 2^0 (1), the next 2^1 (2), then 4, 8, 16 and so on, doubling each time. Only digits equal to 1 contribute, so you add up the place values of the 1s and ignore the 0s. The working shown below the converter lists each 1 bit with its power of 2 and then the total.

Leading zeros do not change the value, so 00000101 and 101 are both the same number. The tool accepts spaces or underscores for readability and an optional 0b prefix.

Large numbers and limits

The converter uses arbitrary-precision integers, so there is no 32-bit or 64-bit ceiling and long binary strings convert exactly. For very long inputs, the step list is shortened but the result is still exact. The tool treats input as an unsigned number: it does not apply two’s complement, so a leading 1 is just a large positive value.

Checking your answer

A quick sanity check: a binary number with n digits is at least 2^(n-1) when its first digit is 1, and less than 2^n. An 8-digit binary number is therefore always between 0 and 255.

Frequently asked questions

What is the binary number 1010 in decimal?
It is 8 + 2 = 10, because only the 2^3 and 2^1 positions hold a 1.
Does a leading zero change the value?
No. Leading zeros add nothing, so 0001 and 1 are both 1 in decimal.
Does this handle negative binary numbers?
No. It reads input as an unsigned integer. Signed formats such as two’s complement depend on a chosen bit width, which the tool does not assume.
What is the largest binary number it can convert?
There is no fixed limit; the arithmetic is arbitrary precision. Very long inputs are only limited by your browser.