About the Two's Complement Calculator

A step-by-step tool for converting signed integers to and from two's complement binary.

What it is

The Two's Complement Calculator converts a signed decimal integer into its two's complement binary representation for a chosen bit width, and vice versa, showing every intermediate step: writing the magnitude in binary, inverting the bits, and adding 1.

Features

Two-way conversion

Decimal to binary and binary to decimal, in the same tool.

Step-by-step working

See the magnitude, inversion, and add-1 steps laid out clearly.

Selectable bit width

4, 8, 16, or 32-bit representations.

Overflow detection

Flags values outside the representable range for the chosen width.

Ready to use it?

Free, no sign-up required.

Open the Two's Complement Calculator