Binary to decimal converter

Convert any binary number to decimal, hex, and octal — with a full step-by-step breakdown of each position's value.

Binary to decimal converter

Decimal value
181
Hex
0xB5
Octal
0o265
Bits
8

Step-by-step breakdown

How to convert binary to decimal

Each binary digit (bit) represents a power of 2. Starting from the rightmost bit as 20, each position to the left doubles. To convert, multiply each bit by its positional value and sum the results.

Decimal = bn×2n + bn−1×2n−1 + ... + b1×21 + b0×20

Example: 10110101 = 1×128 + 0×64 + 1×32 + 1×16 + 0×8 + 1×4 + 0×2 + 1×1 = 128 + 32 + 16 + 4 + 1 = 181.

Place values reference

PositionPowerValue
Bit 0201
Bit 1212
Bit 2224
Bit 3238
Bit 42416
Bit 52532
Bit 62664
Bit 727128
Bit 828256

FAQ

What's the biggest binary I can convert?

The converter uses BigInt internally, so there's no practical limit for positive integers.

Can I convert signed (negative) binary?

This tool treats input as unsigned. To represent negatives, use two's complement: for an n-bit number, the most significant bit indicates the sign.

Why does leading zero not change the value?

Leading zeros in any positional number system don't change the value (just as 0123 = 123 in decimal). They only affect the bit-width for sign representation.

Related calculators