Binary to Decimal Converter

Convert binary numbers (base-2) to decimal numbers (base-10) instantly. Binary uses only two digits (0 and 1), whilst decimal is the standard numbering system we use every day with digits 0-9.

Quick Conversions

Binary to Decimal Conversion Table

Here’s a reference table showing common binary numbers and their decimal equivalents. This is particularly helpful when you’re learning the pattern of binary counting.

Binary Decimal Binary Decimal
001000016
111000117
1021001018
1131001119
10041010020
10151100024
11061100125
11171111131
1000810000032
10019100000064
10101010000000128
10111111111111255
110012100000000256
11011311111111111023
111014100000000001024
111115111111111111111111111111111111114294967295

Conversion Formula & Method

Converting binary to decimal involves multiplying each binary digit by powers of 2, based on its position. The rightmost digit represents 2⁰, the next is 2¹, then 2², and so on.

Formula:
Decimal = (d₀ × 2⁰) + (d₁ × 2¹) + (d₂ × 2²) + … + (dₙ × 2ⁿ)

Where d represents each binary digit (0 or 1) from right to left.

Step-by-Step Method

Example: Convert 1011₂ to decimal

Step 1: Write down the binary number and assign powers of 2 from right to left
  • Position 0 (rightmost): 1 × 2⁰ = 1 × 1 = 1
  • Position 1: 1 × 2¹ = 1 × 2 = 2
  • Position 2: 0 × 2² = 0 × 4 = 0
  • Position 3 (leftmost): 1 × 2³ = 1 × 8 = 8
Step 2: Add all the results together
8 + 0 + 2 + 1 = 11

Result: 1011₂ = 11₁₀
Alternative Method: Double Dabble

This method is simpler for mental arithmetic. Start from the left, double the previous total, and add the current digit.

Example: Convert 1011₂
  • Start with 0, read first digit (1): (0 × 2) + 1 = 1
  • Read second digit (0): (1 × 2) + 0 = 2
  • Read third digit (1): (2 × 2) + 1 = 5
  • Read fourth digit (1): (5 × 2) + 1 = 11
Result: 11₁₀

Powers of 2 Reference

Knowing powers of 2 makes binary conversion much faster. Here are the most commonly used values.

Power Value Power Value
2⁰12⁸256
22⁹512
42¹⁰1,024
82¹¹2,048
2⁴162¹²4,096
2⁵322¹⁶65,536
2⁶642²⁰1,048,576
2⁷1282³²4,294,967,296

Everyday Examples

Binary isn’t just for computers. Here are some places you encounter it in daily life.

  • Computer Memory: Your laptop’s RAM is measured in gigabytes. 1 GB equals 1,073,741,824 bytes (2³⁰), a power of 2 because computers process information in binary.
  • IP Addresses: Every device on a network has an IP address. IPv4 addresses like 192.168.1.1 are actually four 8-bit binary numbers (octets) written in decimal.
  • File Permissions: On Unix/Linux systems, file permissions like 755 or 644 represent binary values. 7 is 111₂ (read, write, execute), 5 is 101₂ (read, execute).
  • Digital Images: Each pixel’s colour is stored as binary. An 8-bit greyscale image has 256 shades (00000000₂ to 11111111₂ in decimal 0-255).
  • QR Codes: Those black and white squares? They’re binary data encoded visually. Your phone reads them and converts the pattern back to text or URLs.

Number System Conversions

Binary is part of a larger family of number systems used in computing and mathematics.

System Base Digits Used Example
Binary20, 11010₂
Octal80-712₈
Decimal100-910₁₀
Hexadecimal160-9, A-FA₁₆

Conversion Between Systems

Decimal Binary Octal Hexadecimal
0000
1111
81000108
10101012A
15111117F
16100002010
25511111111377FF
256100000000400100

FAQs

What is binary code?

Binary code is a numbering system that uses only two digits: 0 and 1. It’s the fundamental language of computers because electronic circuits have two states—on (1) and off (0). Every piece of data in a computer, from text to images to videos, is ultimately stored as sequences of binary digits.

How do you convert binary to decimal quickly?

The fastest method for mental arithmetic is the double dabble technique. Start from the leftmost digit with 0, then repeatedly double your running total and add the next digit. For example, for 101: start with 0, first digit is 1 so (0×2)+1=1, next digit is 0 so (1×2)+0=2, last digit is 1 so (2×2)+1=5.

Why do computers use binary?

Computers use binary because it’s the simplest and most reliable way to represent data electronically. Electronic circuits can easily detect two states (voltage on or off), making binary perfect for digital electronics. It’s also resistant to errors—distinguishing between two states is more reliable than trying to detect multiple voltage levels.

What’s the largest number you can represent with 8 bits?

With 8 bits, you can represent numbers from 0 to 255. That’s 2⁸ = 256 different values. The largest is 11111111₂ which equals 255₁₀. This is why you often see 255 as a maximum value in computing (like RGB colour values ranging from 0-255).

Can binary represent negative numbers?

Yes, binary can represent negative numbers using several methods. The most common is two’s complement, where the leftmost bit indicates the sign (0 for positive, 1 for negative). This allows computers to perform both addition and subtraction using the same circuitry.

What’s the difference between bits and bytes?

A bit is a single binary digit (0 or 1), whilst a byte is a group of 8 bits. Bytes are the standard unit for measuring computer storage and memory. For example, 1 kilobyte (KB) is 1,024 bytes, and 1 megabyte (MB) is 1,024 kilobytes.

How do you write binary numbers?

Binary numbers are typically written with a subscript 2 (like 1010₂) or with a ‘0b’ prefix (like 0b1010) to distinguish them from decimal numbers. When writing them out, you group them in sets of 4 or 8 for readability—for example, 1010 1100 instead of 10101100.

What happens if I enter an invalid binary number?

A valid binary number contains only 0s and 1s. If you enter any other digits (2-9) or letters, the converter will display an error message. Spaces are typically ignored, so you can write 1010 1100 or 10101100—both are valid.

Scroll to Top