Developer Tools

Two's complement.

Convert signed decimal to two's complement binary and hex, decode a bit pattern back to a signed number, or add and subtract with an overflow flag. 4, 8, 16, 32 and 64 bits. Runs in your browser.

Advertisement

Input

Result

Enter a value, then press Calculate.

How it works

Sources: Wikipedia, Two's complement; Cornell notes on two's complement. Related: Binary Converter.

Advertisement
Advertisement
Listening…