Skip to content
ZeroServer.tools

Two's Complement Converter

Convert between decimal integers and two's complement binary — 8, 16, 32, or 64-bit.

Binary (two's complement)
11010110
Hexadecimal
0xD6
Bit width
8-bit
11010110← sign bit

How two's complement works

Two's complement is the standard way computers represent signed integers. For a positive number, it's the same as unsigned binary. For a negative number: invert all bits and add 1. The most significant bit (MSB) is the sign bit — 0 = positive, 1 = negative.

To work with binary numbers generally, see Binary to Decimal and Decimal to Binary. For bitwise operations, try Bitwise Calculator.

Private & free — this tool runs entirely in your browser.

Recommended: IndieKit Ship your Next.js startup in days.affiliate

Related Converters tools