U.UtilityApp
🔄 ConvertersFree · No signup

Binary to Decimal Converter

Convert binary (base-2) numbers to decimal (base-10) with the step-by-step value.

The doubling method: read the bits from left to right

Start with 0. For each bit, double what you have and add the bit. Here is 11010110, which the converter returns as 214:

BitDouble, then add the bitRunning total
10 × 2 + 11
11 × 2 + 13
03 × 2 + 06
16 × 2 + 113
013 × 2 + 026
126 × 2 + 153
153 × 2 + 1107
0107 × 2 + 0214

This works for any length and never needs a table of powers of two. To check the answer the other way, add the place values under each 1: 128 + 64 + 16 + 4 + 2 = 214.

Common places binary numbers show up

  • IP addresses and subnet masks. Each octet is 8 bits. 11000000 is 192 and 11111111 is 255, so a mask written as 24 ones and 8 zeros is 255.255.255.0.
  • File permissions. The bits 111101101 are 493 in decimal, but the octal box in the panel shows 755, the form you would type into chmod.
  • Bit flags and coursework. A settings value stored as bits is easier to compare once you have its decimal value.

Input habits that change the answer

Spaces are fine, so you can group bits for readability: 1101 0110 gives 214. Other characters cause problems, and the converter does not always warn you:

  • A 0b prefix. 0b101 returns 0, because reading stops at the b. Type just 101 (5).
  • A digit other than 0 or 1. Reading stops there. 1021 returns 2, the value of the 10 before the 2.
  • A binary point. Fractions are dropped. 1010.11 returns 10, although the full value is 10.75.

The page opens with 42 in the box. That isn't a binary number, so you'll see an error message until you replace it with your own value.

Unsigned results and the 53-bit limit

Bits are always read as an unsigned number, so 11111111 is 255, not −1. If your 8 bits are a signed byte in two's complement and the leftmost bit is 1, subtract 256: 11111011 is 251, and 251 − 256 = −5. For 16 bits subtract 65536, and for 32 bits subtract 4294967296. A leading minus sign is kept as a plain sign, so -101 gives −5.

Answers are exact up to 53 bits (53 ones is 9007199254740991). Beyond that the result is rounded: a 1 followed by 52 zeros and a final 1 shows as 9007199254740992, one less than the true value.

Frequently asked questions

Do leading zeros change the result?+

No. 00001011 and 1011 are both 11. Leading zeros only matter when you need a fixed width, such as a full 8-bit byte.

Can I paste a whole IP address in binary, dots included?+

Not in one go. The dot stops the reading, so 11000000.10101000 returns only the first octet, 192. Convert each 8-bit group separately and join the results with dots.

What is the largest number 8 bits can hold?+

255, written as eight ones. Eight bits give 256 different values, from 0 to 255.

Embed this tool on your website

Free to use on blogs, school sites and intranets. Paste this code into your page's HTML; please keep the credit line.

<iframe src="https://utilityapp.lat/embed/convert/binary-to-decimal" title="Binary to Decimal Converter" width="100%" height="420" style="border:0;max-width:760px" loading="lazy"></iframe>
<p style="font-size:13px"><a href="https://utilityapp.lat/convert/binary-to-decimal">Binary to Decimal Converter</a> by UtilityApp</p>