Skip to content

Read any binary number

How to Convert Binary to Decimal (Step by Step)

To convert binary to decimal, add up the place values of every bit that is 1. With the eight place values memorised you can read any byte in a few seconds. Here is the method, a worked example and the shortcuts network engineers use.

How to convert

  1. 1Write the place values above each bit: 128, 64, 32, 16, 8, 4, 2, 1
  2. 2Find the bits that are 1
  3. 3Add up their place values
  4. 4Bits that are 0 add nothing

Example: 10000010

Convert 10000010 to decimal. Only the 128 and 2 bits are on:

1
128
0
64
0
32
0
16
0
8
0
4
1
2
0
1
128 + 2 = 130

Another example: 10110110

1
128
0
64
1
32
1
16
0
8
1
4
1
2
0
1
128 + 32 + 16 + 4 + 2 = 182

Tips

  • Learn the eight place values by heart: 128 64 32 16 8 4 2 1
  • Split into two halves: 1000 0010 → 128 + 2
  • The right half is always 0–15
  • A 1 in the last bit means the number is odd
  • Subnet masks: 11111111 = 255, 11111110 = 254, 11111100 = 252

Try it

Turn bits on and check the decimal value.

Decimal
0
Binary
0000 0000

Frequently asked questions

How do you convert binary to decimal?
Write the place values 128, 64, 32, 16, 8, 4, 2, 1 above the bits, then add up the place values where the bit is 1. For example 10000010 is 128 + 2 = 130.
What is 11111111 in decimal?
11111111 is 255: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1. It is the largest number a byte can hold and the value of a full octet in a subnet mask.
How can I tell if a binary number is odd?
Look at the last bit. If it is 1 the number is odd; if it is 0 the number is even.

Practise Binary to Decimal as a game

The Binary Game turns this lesson into quick rounds with a breakdown after every answer. Free to start on iPhone and iPad.