Base 10 to Binary
The same 8 bits can mean different numbers depending on the representation. Enter a base 10 number to see its unsigned pattern and its two's complement pattern, with the steps.
Unsigned (8-bit)
range 0 to 255. Every bit is a magnitude bit.
Two's complement (8-bit)
range -128 to 127. The leftmost bit has weight -128.
Positive and negative of the same integer
Same magnitude, two's complement. The negative is the positive pattern with every bit inverted, then 1 added.