Free forever · No sign-up

Binary to Decimal Converter

Convert any binary number to decimal instantly — with the full step-by-step working shown. Free, fast, no sign-up.

Part of BinDec — 15 free converters for number systems, text encoding & developers.

15 free tools8 languages100% private — runs in your browser

Last updated: October 2026

Your data stays in your browser.

Decimal result —
Recent

No recent conversions yet.

Browse all converters

View all 15 tools →

How to convert binary to decimal

  1. Write down the binary number and number each digit's position from right to left, starting at 0.
  2. Multiply each digit (0 or 1) by 2 raised to the power of its position.
  3. Add all the results together — that's your decimal number.

Example: 1011₂ = (1 × 2³) + (0 × 2²) + (1 × 2¹) + (1 × 2⁰) = 8 + 0 + 2 + 1 = 11.

Background reading: the binary number system and two’s complement on Wikipedia.

Quick reference table

BinaryDecimalCalculation
000000×8+0×4+0×2+0×1 = 0
000110×8+0×4+0×2+1×1 = 1
001020×8+0×4+1×2+0×1 = 2
001130×8+0×4+1×2+1×1 = 3
010040×8+1×4+0×2+0×1 = 4
010150×8+1×4+0×2+1×1 = 5
011060×8+1×4+1×2+0×1 = 6
011170×8+1×4+1×2+1×1 = 7
100081×8+0×4+0×2+0×1 = 8
100191×8+0×4+0×2+1×1 = 9
1010101×8+0×4+1×2+0×1 = 10
1011111×8+0×4+1×2+1×1 = 11
1100121×8+1×4+0×2+0×1 = 12
1101131×8+1×4+0×2+1×1 = 13
1110141×8+1×4+1×2+0×1 = 14
1111151×8+1×4+1×2+1×1 = 15

Powers of 2

PowerValue
201
212
224
238
2416
2532
2664
27128
28256
29512
2101024
2112048
2124096
2138192
21416384
21532768
21665536

Binary to decimal in code

Python

int("1010", 2)   # → 10

JavaScript

parseInt("1010", 2); // → 10

C

#include <stdio.h>

int main(void) {
    const char *s = "1010";
    int result = 0;
    for (int i = 0; s[i] != '\0'; i++)
        result = result * 2 + (s[i] - '0');
    printf("%d\n", result);  /* → 10 */
    return 0;
}

Real-world applications

Common mistakes

Common values

  • 1010₂ = 10
  • 1111₂ = 15
  • 11111111₂ = 255 (largest 8-bit value)
  • 100000000₂ = 256
  • 0₂ = 0
  • 1111111111111111₂ = 65,535 (largest 16-bit value)

Key takeaways

  • Each binary digit doubles in value from right to left: …, 8, 4, 2, 1.
  • Multiply each bit by its place value and add — that is the whole method.
  • Leading zeros never change the value: 00101₂ = 5.
  • One byte (8 bits) holds 0–255; 11111111₂ = 255.
  • For negative numbers, use signed two’s complement with a fixed bit width.

Frequently asked questions

How do I convert binary to decimal?

Multiply each binary digit by 2 raised to its position power (from 0 at the right) and sum the results. Or just use the converter above — it shows every step.

What is 1010 in decimal?

1010₂ = 10 in decimal.

Can this converter handle large binary numbers?

Yes — it supports binary numbers of any length, including 32-bit, 64-bit and longer, with full precision.

What is 11111111 in decimal?

11111111 in binary equals 255 in decimal — the largest value a single byte can hold.

Why do computers use binary?

Hardware works with two physical states — on and off — so binary maps directly onto transistors and logic gates.

What is the largest binary number this converter can handle?

There is no fixed limit — binary strings of any length are supported with full precision, including 64-bit and longer values.

Do leading zeros change the value?

No. 001010 and 1010 both equal 10 — leading zeros only pad the display.

How do I convert binary to decimal with negative numbers?

Tick ‘Signed (two’s complement)’ above and choose the bit width (8, 16, 32 or 64). The top bit then counts as negative: for example, 8-bit 11111111 = −1.

Need the reverse? Try our decimal to binary converter.

More converters

From the blog

Add this converter to your website

Embed our free binary to decimal converter on your own site with one line of code:

<script src="https://binary-to-decimal-28z.pages.dev/embed.js"></script>