Convert binary ↔ decimal with powers of 2. Example: 11111111 → 255.
| Binary | Decimal |
|---|---|
1010 | 10 |
1111 | 15 |
11111111 | 255 |
Write place values under each bit (128 64 32 16 8 4 2 1) and add where the bit is 1.
Add powers of 2 for every bit that is 1.
8+2 = 10.
Related: Binary to Hex, Powers of 2 guide.
Full interactive tool loads with JavaScript. Canonical page.