toolery

Two’s complement calculator

Convert a binary number to its two’s complement, with every step of the inversion and addition shown.

Bit width
Two’s complement
—
Signed value
—
 

How it works

1 Start with the original bits: —
2 Invert every bit: —
3 Add 1 to the result: —
Read the full explanation
Used this in a paper or lesson?