What is Binary?

Binary is the language of computers that uses only two digits 0 and 1.

What is Decimal?

Decimal is our everyday numbers. It uses ten digits 0 to 9.

How to Convert Binary to Decimal

Each digit in a binary number stands for a power of 2. From right to left, the powers are 2^0, 2^1, 2^2, 2^3, and so on.

Small Example: Convert 1011 to Decimal

  1. Write out the binary number: 1011
  2. List the powers of 2:
    • Rightmost 1: 2^0 = 1
    • Second 1: 2^1 = 2
    • 0: 2^2 = 4 (but we ignore this because the digit is 0)
    • Leftmost 1: 2^3 = 8
  3. Add up the values where there's a 1: 8 + 2 + 1 = 11

So, 1011 in binary equals 11 in decimal.

Another Example: 10110

10110 = 16 + 0 + 4 + 2 + 0 = 22 in decimal

Conversion Table

Binary Decimal Explanation
00000No bits set
000112^0 = 1
001022^1 = 2
001132^1 + 2^0 = 2 + 1
010042^2 = 4
010152^2 + 2^0 = 4 + 1
011062^2 + 2^1 = 4 + 2
011172^2 + 2^1 + 2^0 = 4 + 2 + 1
100082^3 = 8
100192^3 + 2^0 = 8 + 1
1010102^3 + 2^1 = 8 + 2
1011112^3 + 2^1 + 2^0 = 8 + 2 + 1
1100122^3 + 2^2 = 8 + 4
1101132^3 + 2^2 + 2^0 = 8 + 4 + 1
1110142^3 + 2^2 + 2^1 = 8 + 4 + 2
1111152^3 + 2^2 + 2^1 + 2^0 = 8 + 4 + 2 + 1