Two's Complement Calculator
See the same bits read as unsigned and as two's complement side by side, and watch what negation actually does to them.
Two’s complement, click a bit to flip it
sign bit ↑
As unsigned
5
As two’s complement
5
How to use it
- Click a bit to flip it. The leftmost bit is the sign bit.
- Compare the unsigned and two's complement readings of the identical pattern.
- Hit Negate to invert every bit and add one, the operation that makes a number negative.