Binary to Decimal Converter

Convert binary digits to decimal numbers instantly with our free online tool

Ready for binary input Supports signed/unsigned formats
Your decimal number will appear here...
Waiting for input Multiple format support

Step-by-Step Calculation

Enter a binary number to see detailed step-by-step conversion

Quick Examples

1010₂
10₁₀
Simple 4-bit number
11111111₂
255₁₀
Maximum 8-bit value
1111111111110110₂
-10₁₀
Negative (2's complement)
10000000000₂
1024₁₀
Power of 2 (2¹⁰)

How Binary to Decimal Works?

Binary to decimal conversion is like translating a secret code that computers use into regular numbers we understand. Think of binary as a language with only two words: 0 and 1. Every binary number is just a combination of these two digits, but each position in the number has a special value.

Here's the magic: each position represents a power of 2. Just like our normal decimal system uses powers of 10 (ones, tens, hundreds), binary uses powers of 2 (1, 2, 4, 8, 16, 32...).

“Example: 1011 in binary becomes 11 in decimal”

Position 1: 1 × 1 = 1
Position 2: 1 × 2 = 2
Position 3: 0 × 4 = 0
Position 4: 1 × 8 = 8
Total: 1 + 2 + 0 + 8 = 11

More Converters

How to Use the Binary to Decimal Converter

1
2
3
4

Step 1: Input Your Binary Number

Enter your binary number in the input field on the left. The converter accepts:

Accepted Formats:

Standard format:
1010, 11110000
Spaced format:
1010 1110 (spaces allowed)
Leading zeros:
00001010

Input Requirements:

Only 0s and 1s accepted
  • • No letters or special characters
  • • Numbers other than 0 and 1 will cause errors
  • • Spaces between groups are allowed

Step 2: Choose Number Format (Optional)

Select format from the advanced options:

Number Format Options:

Unsigned binary
Default

Positive numbers only

Signed 2's complement

Includes negative numbers

Bit Width Options:

8 bits

Numbers 0-255 (unsigned) or -128 to 127 (signed)

16 bits

Standard word size (default)

32 bits

Extended range support

64 bits

Support upto 64 bits

Step 3: View Results

Decimal result appears instantly in the output field on the right.

Real-time Results:

Instant conversion
Results appear as you type
Error detection
Invalid input warnings
Step-by-step breakdown
Detailed calculation steps

Additional Output Formats:

Hexadecimal
Base-16 representation
Octal
Base-8 representation
Mathematical Properties
Even/odd, prime status, factors

Step 4: Copy or Save Results

Multiple options to save and share your conversion results

Copy Options:

Copy Result
Copy decimal number to clipboard
Copy Hex
Copy hexadecimal equivalent (if enabled)
Copy Octal
Copy octal equivalent (if enabled)

Save Options:

TXT format
Plain text file with result
BIN format
Binary data file
JSON format
Structured data with all formats

Share Options:

Share URL
Generate shareable link
Share via Email
Send conversion via email

Step by Step Binary to Decimal Conversion (Manually)

Binary to Decimal Formula

The mathematical formula for binary to decimal conversion is:

Decimal = Σ(digit × 2ⁿ)
Where:
digit = binary digit at position n (either 0 or 1)
n = position number (starting from 0 on the right)
Σ = sum of all calculations

Formula in practice:

For binary number 1011:
Decimal = (1×2³) + (0×2²) + (1×2¹) + (1×2⁰)
Decimal = (1×8) + (0×4) + (1×2) + (1×1)
Decimal = 8 + 0 + 2 + 1 = 11

Manual Conversion Method

Converting binary to decimal by hand is straightforward. Follow this three-step method:

1

Step 1: Write Down Position Values

Start from the right and assign each position a power of 2:

Position:
4
Position:
3
Position:
2
Position:
1
Power:
8
Power:
4
Power:
2
Power:
1
Binary:
1
Binary:
0
Binary:
1
Binary:
1

Pro tip: The rightmost digit is always position 0 (value = 2⁰ = 1). Each position to the left doubles the value.

2

Step 2: Multiply Each Digit by Its Position Value

Look at each binary digit (0 or 1) and multiply it by its position value:

Position 0:
1 × 1 = 1
Position 1:
1 × 2 = 2
Position 2:
0 × 4 = 0 (zero times anything = 0)
Position 3:
1 × 8 = 8
3

Step 3: Add All Results Together

Simply add up all the numbers from Step 2:

1 + 2 + 0 + 8 = 11
Result: Binary 1011 = Decimal 11

Visual Breakdown Example

Let's convert the binary number 10110 to decimal using our method:

Position Binary Digit Power of 2 Calculation Value
0 0 2⁰ = 1 0 × 1 0
1 1 2¹ = 2 1 × 2 2
2 1 2² = 4 1 × 4 4
3 0 2³ = 8 0 × 8 0
4 1 2⁴ = 16 1 × 16 16
Final calculation:
0 + 2 + 4 + 0 + 16 = 22
So binary 10110 equals decimal 22.

Quick Reference: Common Binary Numbers

Master these common conversions to speed up your binary to decimal skills:

Basic Numbers (0-15)

Binary
Decimal
Hex
0
0
0
1
1
1
10
2
2
11
3
3
100
4
4
101
5
5
110
6
6
111
7
7
1000
8
8
1001
9
9
1010
10
A
1011
11
B
1100
12
C
1101
13
D
1110
14
E
1111
15
F

Powers of 2 & Common Values

Binary
Decimal
Note
10000
16
2⁴
10001
17
16+1
10010
18
16+2
10011
19
16+3
10100
20
16+4
11111
31
5 bits
100000
32
2⁵
1000000
64
2⁶
10000000
128
2⁷
11111111
255
8-bit max
100000000
256
2⁸
10000000000
1024
2¹⁰

Quick Practice - Click to Test Yourself

1010₂
Click to reveal
1111₂
Click to reveal
10000₂
Click to reveal
11010₂
Click to reveal
101010₂
Click to reveal
1100100₂
Click to reveal

Memory Tips:

Powers of 2: 1, 2, 4, 8, 16, 32, 64, 128, 256...
All 1s in n bits = 2ⁿ - 1 (e.g., 1111 = 2⁴ - 1 = 15)
Single 1 followed by zeros = power of 2
8-bit maximum: 11111111 = 255

Why This Method Always Works

This binary to decimal conversion method is mathematically guaranteed because:

Mathematical Principles:

Binary is a base-2 system

Each position represents a power of 2

Decimal is a base-10 system

We're translating between number systems

Position values never change

Powers of 2 are universal (1, 2, 4, 8, 16...)

Only two possibilities per digit

Either 0 (contributes nothing) or 1 (contributes the position value)

Visual Proof:

Any Binary Number Example:

Position 4
Position 3
Position 2
Position 1
Position 0
2⁴=16
2³=8
2²=4
2¹=2
2⁰=1
1
1
0
1
0
1×16=16
1×8=8
0×4=0
1×2=2
0×1=0
16 + 8 + 0 + 2 + 0 = 26
Binary 11010 = Decimal 26

Universal Mathematical Truth:

This method works for any binary number because each digit can only be 0 or 1, and each position has a fixed power-of-2 value. The decimal result is simply the sum of all position values where the binary digit is 1.

Decimal = Σ(binary_digit × 2^position) for all positions

Verification Examples:

101₂
1×4 + 0×2 + 1×1
= 5₁₀
1001₂
1×8 + 0×4 + 0×2 + 1×1
= 9₁₀
11111₂
16+8+4+2+1
= 31₁₀

Mathematical Guarantee

Since binary uses base-2 positional notation and decimal uses base-10, this conversion method mathematically translates between these number systems with 100% accuracy. Every binary number has exactly one decimal equivalent, and this method will always find it.

Troubleshooting Common Issues

Having trouble with our binary to decimal converter? Here are the most common issues users encounter and how to resolve them quickly.

Input Problems

"Invalid binary number" Error Message

This error appears when your input contains characters that aren't valid binary digits.

What causes this:

Your input contains letters, numbers other than 0 and 1, or special characters like punctuation marks.

How to fix it:

Remove any characters except 0 and 1 from your input. Valid examples include 1010, 11110000, or 1010 1110 (spaces between groups are allowed).

Invalid Examples:
10a1 (contains letter)
1023 (contains numbers > 1)
101! (contains punctuation)
Valid Examples:
1010
11110000
1010 1110

No Decimal Result Displaying

The output field shows "Waiting for input" or remains empty even after typing.

What causes this:

Either you haven't entered anything in the input field, or the characters you entered aren't recognized as valid binary.

How to fix it:
  • Check that you've actually typed something in the input field
  • Ensure your input uses only the digits 0 and 1
  • Clear the field and try entering a simple example like 1010 to test

Output Problems

Getting Negative Numbers Unexpectedly

Your binary input produces a negative decimal result when you expected a positive number.

What causes this:

The converter is set to "Signed 2's complement" mode, which interprets certain binary patterns as negative numbers. For example, 11111111 becomes -1 instead of 255.

How to fix it:

Look for the "Number Format" section in the advanced options below the converter. Select "Unsigned binary" instead of "Signed 2's complement" to get positive results only.

Signed Mode (2's complement):
11111111 = -1
10000000 = -128
Unsigned Mode:
11111111 = 255
10000000 = 128

Result Doesn't Match Expected Range

The decimal output seems too large or too small for what you expected from your binary input.

What causes this:

The bit width setting doesn't match your intended number size. Different bit widths have different maximum values and handle signed numbers differently.

How to fix it:

Adjust the "Bit Width" setting in the advanced options. Choose 8 bits for numbers 0-255, 16 bits for larger ranges, or 32 bits for very large numbers. Remember that signed mode reduces the positive range by half.

8 bits:
Unsigned: 0 to 255 | Signed: -128 to 127
16 bits:
Unsigned: 0 to 65,535 | Signed: -32,768 to 32,767
32 bits:
Unsigned: 0 to 4,294,967,295 | Signed: -2,147,483,648 to 2,147,483,647
64 bits:
Unsigned: 0 to 18,446,744,073,709,551,615 | Signed: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Still Having Issues?

These solutions resolve the majority of issues users experience with the converter. If you continue having problems after trying these steps, try refreshing the page or using a different web browser.

Frequently Asked Questions

What's the largest binary number I can convert?

Our converter supports up to 64-bit binary numbers. For unsigned numbers, this means up to 18,446,744,073,709,551,615 in decimal. For signed numbers, the range is -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.

64-bit Unsigned Maximum:
18,446,744,073,709,551,615
64-bit Signed Range:
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
How do negative binary numbers work?

Negative binary numbers use 2's complement representation. Enable "Signed 2's complement" in the advanced options and select your bit width. For example, in 8-bit signed format, 11111111 equals -1, while the same number in unsigned format equals 255.

8-bit Examples:
11111111 (unsigned) = 255
10000000 (unsigned) = 128
11111111 (signed) = -1
10000000 (signed) = -128
Can I convert a decimal back to binary?

Yes, click the "Switch to Decimal to Binary" button below our converter to reverse the conversion process. You can also find our dedicated decimal to binary converter in the navigation menu.

Quick Access:
Use the "Switch to Decimal to Binary" button for instant reversal
Why do I get different results with signed vs unsigned?

The same binary pattern represents different decimal values depending on interpretation. For example, 10000000 in 8-bit format equals 128 (unsigned) or -128 (signed). This is how computers actually handle positive and negative numbers.

Unsigned Interpretation:
All bits represent magnitude
10000000 = 1×128 = 128
Signed Interpretation:
Leftmost bit = sign bit
10000000 = -128 (2's complement)
Do I need to download anything to use this?

No, the converter runs entirely in your web browser. No downloads, installations, or plugins required. It even works offline once the page loads.

No Downloads
Works Offline
Any Browser
Is this converter accurate for programming?

Yes, our converter handles all standard programming data types, including 8-bit, 16-bit, 32-bit, and 64-bit integers. It correctly implements both signed and unsigned number representations used in programming languages.

Programming Data Types:
  • • 8-bit: char, byte
  • • 16-bit: short, word
  • • 32-bit: int, long (32-bit)
  • • 64-bit: long long, long (64-bit)
Number Representations:
  • • Signed integers (2's complement)
  • • Unsigned integers
  • • Big-endian and little-endian
  • • IEEE 754 compatible
Perfect for:
Debugging, learning computer architecture, embedded systems, and understanding how programming languages handle numbers internally.