English

Binary to Decimal

Each binary digit (bit) is worth a power of 2: 1, 2, 4, 8, 16 and so on from the right. Add the values of the 1 bits to get the decimal number.

Binary1101
Octal15
Decimal13
HexadecimalD
Show the working
DigitValuePlace valueDigit × place value
11238
11224
00210
11201
Add them up13

Binary to decimal table

BinaryDecimal
00
11
102
113
1004
1015
1106
1117
10008
10019
101010
111115
1 000016
10 000032
100 000064
111 1111127
1000 0000128
1111 1111255
1 0000 0000256
11 1111 11111,023

How it works

  • Number the positions from the right starting at 0. A 1 in position n is worth 2 to the power n.
  • Add up the values of the positions that hold a 1; positions with 0 add nothing.
  • Example: 1101 = 8 + 4 + 0 + 1 = 13.

Frequently asked questions

What is 11111111 in decimal?

255: the sum 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1, the largest 8-bit value.

How many values can 8 bits hold?

2 to the power 8 = 256 values, from 0 to 255.

Calculations run in your browser. Nothing you enter is sent anywhere or added to a searchable page address. How we calculate