To convert binary to decimal, use the place-value rule: each bit times its weight, all added up. Since every bit is 0 or 1, that simplifies to add the weights that sit over a 1.
- Write the weights above the bits, starting with 1 at the right: 1, 2, 4, 8, 16, …
- Mark the weights that sit over 1-bits.
- Add them.
For long numbers there's a second method, doubling. Start with 0. For each bit from left to right, double the running total and add the bit. It works because each step shifts everything one place left, which doubles it.
Both methods give the unsigned value. For a twos complement pattern with MSB 1, make the leftmost weight negative, or subtract 2ⁿ from the unsigned value.