Two's Complement
Show the two's complement form of a signed integer.
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
- Choose the Width: 8, 16, 32 or 64 bits.
- Under Value is, pick Signed decimal and type a number such as -42 to see its bits.
- Or pick Binary / hex bits and paste a pattern to see which signed number it stands for.
Related tools
More in Numbers
Number Base Converter
Convert a number between any bases from 2 to 36.
Binary to Decimal
Turn a binary number into decimal, with the working shown.
Hex to Decimal
Turn a hexadecimal number into decimal.
Decimal to Binary
Turn a decimal number into binary.
Decimal to Hex
Turn a decimal number into hexadecimal.
Roman Numerals
Convert numbers to Roman numerals and back.
Octal Converter
Convert octal numbers to decimal, binary and hex.
Number to Words
Write a number out in English words.
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.