Binary to Decimal Converter

Free binary to decimal converter for unsigned and signed Two’s Complement numbers with interactive positional bit weights, hex/octal readouts, and export.

Presets:
6 bits
Base-2 valid · BigInt exact
Decimal Output (Base 10)
42
Hex: 0x2A
Octal: 0o52
Positional Bit-Weight Expansion (click any bit cell to flip 0/1)2^5 (32) + 2^3 (8) + 2^1 (2) = 42
2^52^42^32^22^12^0
32168421

Binary to Decimal Powers of Two Reference

Base 2 → Base 10
PowerBinary (Base 2)Decimal (Base 10)Hexadecimal
2⁰110x1
2¹1020x2
2²10040x4
2³100080x8
2⁴10000160x10
2⁵100000320x20
2⁶1000000640x40
2⁷100000001280x80
2⁸ − 1111111112550xFF
2⁸1000000002560x100
2¹⁰100000000001,0240x400
2¹⁶ − 1111111111111111165,5350xFFFF

Click any row to load that binary value directly into the interactive binary to decimal calculator above.

Signal & Number Converters

7 tools

Binary to Decimal Positional Notation & Signed Arithmetic

Every binary to decimal conversion evaluates the positional polynomial N = Σ b_i × 2^i where bit b_0 is the rightmost Least Significant Bit (weight 1) and each leftward shift doubles the place value. For fixed-width signed computer registers (8, 16, 32, or 64 bits), the highest bit carries weight −2^(w−1) under Two’s Complement encoding.

Need to translate 8-bit binary sequences back into ASCII/UTF-8 text or expand base-16 register dumps into decimal? Switch straight to our Binary Code Translator or Hex to Decimal tool.

“In a pure binary numeration system, the fixed radix is two and each digit position carries an integral power of two as its positional weight.”

Binary to Decimal Notes

How do you convert a binary number to decimal by hand?
Multiply each binary digit (0 or 1) from right to left by increasing powers of two (2⁰ = 1, 2¹ = 2, 2² = 4, 2³ = 8, ...) and sum the non-zero terms. For example, 101010 = 1×32 + 0×16 + 1×8 + 0×4 + 1×2 + 0×1 = 42.
How does signed Two’s Complement change a binary to decimal result?
In a fixed-width signed integer (such as 8-bit int8), the leftmost Most Significant Bit carries a negative weight (−2⁷ = −128). Thus 10000000 equals +128 when unsigned, but −128 in signed 8-bit Two’s Complement.
Does this converter lose precision on 64-bit or larger binary numbers?
No. Standard JavaScript floating-point numbers lose integer accuracy above 2⁵³, whereas our workbench uses native BigInt arithmetic so 64-bit, 128-bit, and arbitrary-length bitstreams stay 100% exact.
How is binary to decimal different from binary to text?
Binary to decimal treats the entire bit sequence as a single base-2 integer value. Binary to text splits bits into 8-bit UTF-8 bytes and maps each byte to characters—use our main Binary Code Translator for text decoding.