Browser-local conversion

Binary to Decimal Converter

Convert a binary number—not UTF-8 text bytes—to an exact decimal integer. Large values stay precise beyond JavaScript’s safe Number range.

Enter a value and select Convert.

Method and worked example

Each binary digit is a coefficient at a power of two. The tool validates the entire integer and uses BigInt for exact conversion; a leading minus sign represents an ordinary mathematical negative, not two’s complement.

Example

101101₂ = 1×2⁵ + 0×2⁴ + 1×2³ + 1×2² + 0×2¹ + 1×2⁰ = 45₁₀. An optional 0b prefix is accepted.

Limits and signed values

Only plain signed binary integers are accepted. Fractions, scientific notation, spaces inside the number, and two’s-complement interpretation are outside scope. Input is limited to 50,000 binary digits.

Safe, exact local processing

Input is handled as inert data and rendered with safe text nodes. No code is evaluated. Integer tools use arbitrary-precision BigInt instead of floating-point conversion, and the Binary Translator uses the browser’s UTF-8 byte APIs.