Binary to Decimal Converter

Paste a binary number to get its decimal value, with each bit's place value shown underneath.

Binary numbers use only the digits 0 and 1. A 0b prefix is fine.

Decimal result
Result appears as you type

How to convert binary to decimal by hand

Example 1: 10011100 in binary is 156 in decimal

Binary to decimal: add up the place values

Each binary digit is worth its value times 2 raised to the power of its position, counting from 0 on the right.

DigitPlace valueDigit × place value
12⁷ = 1281 × 128 = 128
02⁶ = 640 × 64 = 0
02⁵ = 320 × 32 = 0
12⁴ = 161 × 16 = 16
12³ = 81 × 8 = 8
12² = 41 × 4 = 4
02¹ = 20 × 2 = 0
02⁰ = 10 × 1 = 0

128 + 0 + 0 + 16 + 8 + 4 + 0 + 0 = 156

Example 2: 11000000 in binary is 192 in decimal

Binary to decimal: add up the place values

Each binary digit is worth its value times 2 raised to the power of its position, counting from 0 on the right.

DigitPlace valueDigit × place value
12⁷ = 1281 × 128 = 128
12⁶ = 641 × 64 = 64
02⁵ = 320 × 32 = 0
02⁴ = 160 × 16 = 0
02³ = 80 × 8 = 0
02² = 40 × 4 = 0
02¹ = 20 × 2 = 0
02⁰ = 10 × 1 = 0

128 + 64 + 0 + 0 + 0 + 0 + 0 + 0 = 192

Binary to Decimal conversion table

BinaryDecimal
00
11
102
113
1004
1015
1106
1117
10008
10019
101010
101111
110012
110113
111014
111115
1000016
10000032
100000064
1100100100
10000000128
11111111255
100000000256
1000000000512
11111010001000
100000000001024

Where this conversion comes up

  • Reading IPv4 addresses and masks written in binary: 11000000 is 192.
  • Checking a register, status byte or bit field from a datasheet or debugger.
  • Coursework, where you add up the powers of 2 for each 1 bit.

Frequently asked questions

Is there a quick way to convert binary to decimal in my head?

Write the place values 128, 64, 32, 16, 8, 4, 2, 1 above an 8-bit number and add the ones where the bit is 1. For 10011100 that is 128 + 16 + 8 + 4 = 156.

Does this handle signed (two's complement) binary?

No. The bits are read as an unsigned number. If your value is two's complement and the top bit is 1, subtract 2ⁿ (where n is the number of bits) from the result to get the signed value.

Can I convert negative numbers?

Yes. Put a minus sign in front and it is kept in the result, for example -10011100 becomes -156. The converter does not produce two's complement.

Is there a limit on how big the number can be?

No practical limit. The conversion uses arbitrary precision integers, so long values stay exact. The step-by-step working is shown for numbers up to 24 digits.

Can I convert fractions?

Not with this tool. It converts whole binary numbers to whole decimal numbers.

Other number converters

Going the other way? Use the Decimal to Binary Converter. To see a number in every base at once, try the all-in-one number converter.

Local Processing
End-to-End Encryption
Works Offline

Building Something Beyond This Tool?

We help teams design and build reliable web and mobile applications backed by well-structured APIs.