Binary to Decimal Conversion: The Complete Guide

Last updated: January 2025 | 5 min read

Binary is the language of computers, using only 0s and 1s to represent all data. Understanding how to convert between binary and decimal is fundamental to computer science and programming.

Understanding Binary

In the decimal system (base 10), each digit position represents a power of 10. In binary (base 2), each position represents a power of 2.

Powers of 2: 128, 64, 32, 16, 8, 4, 2, 1
(2^7, 2^6, 2^5, 2^4, 2^3, 2^2, 2^1, 2^0)

Binary to Decimal Conversion

To convert binary to decimal, multiply each bit by its position value and add them up.

Example: Convert 10110101 to decimal

Position76543210
Power of 21286432168421
Binary digit10110101
Value128032160401

128 + 0 + 32 + 16 + 0 + 4 + 0 + 1 = 181

Decimal to Binary Conversion

Use the division method: repeatedly divide by 2 and track the remainders.

Example: Convert 181 to binary

181 ÷ 2 = 90 remainder 1
90 ÷ 2 = 45 remainder 0
45 ÷ 2 = 22 remainder 1
22 ÷ 2 = 11 remainder 0
11 ÷ 2 = 5 remainder 1
5 ÷ 2 = 2 remainder 1
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1

Read remainders from bottom to top: 10110101

Quick Reference Chart

DecimalBinaryDecimalBinary
0000081000
1000191001
20010101010
30011111011
40100121100
50101131101
60110141110
70111151111

Binary in Computing

Binary is used everywhere in computers:

Hexadecimal Shortcut

Programmers often use hexadecimal (base 16) because it's a compact way to represent binary. Each hex digit represents 4 binary digits:

HexBinaryHexBinary
0000081000
1000191001
20010A1010
30011B1011
40100C1100
50101D1101
60110E1110
70111F1111
Example: Binary to Hex
10110101 → Split into groups of 4: 1011 0101
1011 = B, 0101 = 5
Binary 10110101 = Hex B5

Convert Numbers Instantly

Use our free Number Base Converter!

Practice Problems

Try these conversions yourself:

  1. Binary 11001010 = ? (Answer: 202)
  2. Decimal 75 = ? (Answer: 1001011)
  3. Binary 11111111 = ? (Answer: 255)
  4. Decimal 128 = ? (Answer: 10000000)

📱 Get Our Free App

Google Play