Binary to Decimal Converter – Fast & Free Online Tool

Convert binary to decimal instantly in your browser. See results in hex and octal too. No sign-up, no data uploaded. Free forever.

Decimal

255

In every base

Binary11111111
Octal377
Decimal255
HexFF

Converts instantly in your browser — arbitrarily large numbers supported. Prefixes 0b / 0o / 0x and spaces are accepted.

Convert binary to decimal instantly

Paste or type any binary number above and get the decimal result in one click. The converter also shows the value in octal and hexadecimal at the same time, so you see the full picture without running separate conversions.

Everything runs in your browser. Nothing is sent to a server, so paste away with confidence — your data stays private.

How to use it

  1. Type or paste your binary number (e.g. 11010110) into the input field above.
  2. The decimal equivalent appears immediately — no button to click.
  3. Copy the result or check the other bases shown alongside it.

Worked example: binary to decimal conversion

Let's convert 11010110 (binary) to decimal by hand so you can see exactly what's happening.

Each digit (called a bit) represents a power of 2. Working right to left, the positions are 2⁰, 2¹, 2², 2³, and so on.

Bit position76543210
Bit value11010110
Power of 21286432168421
Contribution128640160420

Add the contributions: 128 + 64 + 16 + 4 + 2 = 214

So 11010110₂ = 214₁₀ in decimal. The converter above gets you there in under a second, no matter how many bits are involved.

Quick reference: common binary values

BinaryDecimalHex
000000
000111
101010A
111115F
11010110214D6
11111111255FF
100000000256100

How to convert binary to decimal in code

If you're working in a script rather than the browser, here are the one-liners you need.

Python

# Python: convert a binary string to decimal
binary_str = '11010110'
decimal_value = int(binary_str, 2)
print(decimal_value)  # 214

int(value, base) is the built-in way to parse any base — no import needed.

JavaScript

// JavaScript: convert a binary string to decimal
const binaryStr = '11010110';
const decimalValue = parseInt(binaryStr, 2);
console.log(decimalValue); // 214

parseInt accepts a radix (base) as its second argument, so passing 2 treats the string as binary.

How it works under the hood

The converter applies the standard positional notation algorithm defined in the IEEE and described in the ECMAScript spec for parseInt. Each bit is multiplied by 2 raised to its position index, and the products are summed.

The tool handles very large binary numbers — far beyond the 32-bit limit of parseInt — by using JavaScript's BigInt internally, so leading zeroes are ignored and there's no overflow.

When to use this converter — and when not to

  • Use it when reading low-level output: CPU registers, network protocol bit fields, embedded device dumps, or error codes in binary.
  • Use it when debugging bit-masking logic and you need to cross-check a value across binary, decimal, and hex at a glance.
  • Skip it if you're working with signed integers in two's complement notation — a negative binary value like 10000001 reads as 129 in unsigned decimal, not −127. You'd need a dedicated two's complement tool for that.
  • Skip it for floating-point binary (IEEE 754) — patterns like 01000001001000000000000000000000 represent a float, not a plain integer.

The tool is completely free and requires no sign-up — open the page and start converting.

Ready to go? Drop your binary string into the converter at the top of the page and get your decimal answer instantly.

Frequently asked questions

Is my binary input uploaded to a server?+
No. The conversion runs entirely in your browser using JavaScript. Nothing you type is ever sent anywhere, so it's safe to use with sensitive values like cryptographic keys or private data.
What's the largest binary number it can convert?+
The tool uses JavaScript's BigInt, which has no fixed upper limit. You can convert binary numbers thousands of bits long without overflow errors. Standard 8-bit, 16-bit, 32-bit, and 64-bit values all work fine.
Can it handle binary numbers with leading zeros?+
Yes. Leading zeros (like 00001010) are correctly ignored during conversion, so the result is the same as without them — in this case, 10.
How do I convert decimal back to binary?+
Just type your decimal number in the decimal field of the converter above — the tool works in both directions. In Python you can also use bin(214), which returns '0b11010110'.
What does 'binary to decimal' mean in plain English?+
Binary is a base-2 number system that uses only 0s and 1s — the native language of computers. Decimal is the everyday base-10 system (0–9). Converting between them lets you read a computer value as a normal number.
Is this tool free? Do I need to create an account?+
Completely free, no account needed. Open the page and start converting — there's no rate limit or paywall.
Does it show hex and octal too?+
Yes. The converter displays the equivalent value in octal (base 8) and hexadecimal (base 16) alongside the decimal result, so one paste gives you all four common bases at once.
How do I convert binary to decimal in Python?+
Use the built-in int() function with a base argument: int('11010110', 2) returns 214. No imports required.