Binary ↔ Decimal

Type a decimal or binary value to see the conversion and how each bit contributes to the total.

Converter
Change either field to update the other instantly.

Decimal keypad

Binary keypad

Breakdown
Each binary digit is multiplied by a power of two, then summed.
BitPower of 2Value
1231 × 8 = 8
1221 × 4 = 4
0210 × 2 = 0
1201 × 1 = 1

Sum: 8 + 4 + 0 + 1 = 13