Binary to Decimal Converter

Convert any binary number (base 2) to decimal (base 10) instantly. This free tool validates your input, shows the step-by-step breakdown, and supports binary strings up to 1,024 bits — far beyond the 64-bit limit of most programming languages. Works entirely in your browser, so your numbers never leave your device.

Input

Enter a binary number
Tip: Binary uses only 0 and 1. You can paste binary with spaces or line breaks — the tool strips them automatically.

Result

Converted value

Your result will appear here

Enter a binary number and click Convert.

What is binary to decimal conversion?

Binary is a base-2 number system that uses only two digits: 0 and 1. Decimal is a base-10 number system that uses ten digits: 0 through 9. Converting binary to decimal means translating a number written in base 2 into its equivalent value in base 10.

Every computer, phone, and digital device stores and processes data in binary — because electronic circuits have two natural states: on and off. But humans think in decimal. That's why binary-to-decimal conversion comes up everywhere: programming, networking, digital electronics, computer science homework, and even competitive exams.

For example, the binary number 1011 equals 11 in decimal. The binary number 11111111 equals 255, which is the maximum value of a single byte (8 bits). And 10000000 equals 128, the highest bit in an 8-bit unsigned integer.

How to convert binary to decimal (with examples)

The method is simple: multiply each binary digit by 2 raised to the power of its position, then add all the results together. Positions are counted from right to left, starting at 0.

Example 1: Convert 1011 to decimal

  1. Rightmost bit (position 0): 1 × 2⁰ = 1 × 1 = 1
  2. Next bit (position 1): 1 × 2¹ = 1 × 2 = 2
  3. Next bit (position 2): 0 × 2² = 0 × 4 = 0
  4. Leftmost bit (position 3): 1 × 2³ = 1 × 8 = 8
  5. Add them: 8 + 0 + 2 + 1 = 11

So 1011₂ = 11₁₀.

Example 2: Convert 11001010 to decimal

  1. Position 0: 0 × 1 = 0
  2. Position 1: 1 × 2 = 2
  3. Position 2: 0 × 4 = 0
  4. Position 3: 1 × 8 = 8
  5. Position 4: 0 × 16 = 0
  6. Position 5: 0 × 32 = 0
  7. Position 6: 1 × 64 = 64
  8. Position 7: 1 × 128 = 128
  9. Sum: 128 + 64 + 8 + 2 = 202

So 11001010₂ = 202₁₀.

The tool above does all of this automatically and shows you the full breakdown, so you can check your work or learn the process step by step.

Why use this binary to decimal converter?

Instant conversion

Results appear the moment you click Convert — no server round-trip, no waiting.

Step-by-step breakdown

See exactly how each bit contributes to the final decimal value, with a clear table showing positions and powers of 2.

Input validation

The tool rejects invalid digits (anything other than 0 or 1) and highlights the exact position of the problem.

Large number support

Convert binary strings up to 1,024 bits long — far beyond the 64-bit limit of most programming languages.

Two-way conversion

Switch to Decimal → Binary mode with one click. The swap button flips the result back into the input.

100% private

Everything runs in your browser. The numbers you enter never leave your device — no server, no logs, no tracking.

Quick reference: binary to decimal chart

Here are the most common binary-to-decimal conversions. This table is handy for quick lookups or study sessions.

Binary Decimal Binary Decimal
0010008
1110019
102101010
113101111
1004110012
1015110113
1106111014
1117111115

For a larger range, just paste any binary number into the tool above. It handles everything from single bits to thousand-bit strings.

When would you need to convert binary to decimal?

Computer science and programming

  • Debugging low-level code that manipulates bit flags, bitmasks, or hardware registers
  • Understanding memory addresses, permission bits (like Unix file modes), or network masks
  • Working with binary protocols, file formats, or serialized data
  • Converting binary literals in code (e.g., 0b1011) to their decimal equivalents for verification

Students and exams

  • Homework and assignments in digital electronics, computer architecture, or discrete math
  • Competitive exams that include number system questions
  • Practicing conversions by checking your answers against the step-by-step breakdown

Networking and IT

  • Converting subnet masks from binary to dotted-decimal notation
  • Understanding IPv4 address calculations and CIDR notation
  • Working with MAC addresses, binary headers, or protocol flags

Everyday curiosity

  • Figuring out what a binary string represents — maybe you saw it in a puzzle, a game, or a meme
  • Checking what 11111111 or 10101010 actually equals
  • Teaching someone how binary numbers work with a live example

Binary vs decimal vs hexadecimal

Binary is base 2, decimal is base 10, and hexadecimal is base 16. Programmers often use all three, sometimes in the same file. Here's how they compare:

Decimal (base 10) Binary (base 2) Hexadecimal (base 16)
000
111
2102
101010A
151111F
161000010
25511111111FF
256100000000100

Binary is the most fundamental, hexadecimal is the most compact, and decimal is the most human-readable. This tool focuses on binary ↔ decimal, which is the most common conversion for learning and debugging.

Frequently asked questions

Multiply each binary digit by 2 raised to the power of its position (starting from 0 on the right), then add all the results. For example, binary 1011 = (1×8) + (0×4) + (1×2) + (1×1) = 11 in decimal. The tool above shows this breakdown for every conversion.
This tool supports binary numbers up to 1,024 bits long — far more than the 64-bit limit of most programming languages. That means you can convert binary strings thousands of digits long without losing precision.
Yes. Click the Decimal → Binary tab above the input box, or use the Swap button after a conversion to flip the result into the input and convert in the opposite direction.
This converter handles unsigned binary numbers. For signed (two's complement) binary, you'll need a specialized converter. Most everyday binary-to-decimal conversions use unsigned numbers, which is what this tool is designed for.
Binary only uses the digits 0 and 1. Any other digit (like 2–9) is invalid. The tool validates your input and highlights the exact position of the invalid character so you can fix it quickly.
Yes, completely free. No signup, no limits, no watermark. Convert as many binary numbers as you want, for personal or commercial use.
Absolutely. Everything runs in your browser. The binary numbers you enter never leave your device — there is no server processing and no data storage. Close the tab and it's gone.
Yes. Once the page loads, the converter works without an internet connection. All processing happens locally in your browser using JavaScript.