Two's Complement

Show the two's complement form of a signed integer.

Two's Complement

What it does

Shows how a signed whole number is stored in two's complement, the way computers keep negative numbers. Useful for learning and for reading raw values from memory, files or sensors. You get the binary and hex form, or the signed value of a bit pattern.

How to use the Two's Complement

  1. Choose the Width: 8, 16, 32 or 64 bits.
  2. Under Value is, pick Signed decimal and type a number such as -42 to see its bits.
  3. Or pick Binary / hex bits and paste a pattern to see which signed number it stands for.

Related tools

More in Numbers

Two's Complement questions

How do I use the Two's Complement?

Enter the values in the fields of the tool and read the result below them.