Technology

Binary to Decimal Converter

Convert any binary string (base 2) up to 64 bits into exact Decimal (base 10), Hexadecimal (base 16), and Octal (base 8).

Interactive Binary to Decimal Converter

Up to 64 bits; spaces are ignored.

Calculation Results

Decimal (Base 10)

181

Hexadecimal (Base 16)

0xB5

Octal (Base 8)

0o265

Bit Length

8 bits

Formula Explanation

Positional Base-2 Expansion

Decimal = Σ (bitᵢ × 2ⁱ) from right (i = 0) to left

Each binary digit represents a power of 2 starting at 2⁰ = 1 on the far right. Adding the positional values where the bit equals 1 yields the base-10 integer.

Worked Example

Example: Converting 10110101₂

1×128 + 0×64 + 1×32 + 1×16 + 0×8 + 1×4 + 0×2 + 1×1 = 128 + 32 + 16 + 4 + 1 = 181 (0xB5 in hex).

Frequently Asked Questions

Why do computers use binary?
Digital circuits reliably represent two voltage states—off (0) and on (1)—making base-2 arithmetic fast and noise-resistant.
How does binary map to hexadecimal?
Every group of 4 binary bits maps directly to a single hexadecimal digit (0–9, A–F).

Related Calculators