Octo7 Two’s complement example

Read the bits.

Inspect a fixed-width integer, flip individual bits, and read the same pattern as signed or unsigned.

Word input

Decimal or 0x hex, 0o octal, 0b binary.

Word readout

Signed decimal
—
Unsigned decimal
—
Hexadecimal
—
Octal
—
Binary
—

Bit pattern

Select a bit to flip it. The highest bit is the sign bit in two’s complement.

Signed and Unsigned Binary Calculator and Bit Inspector | Octo7

Inspect fixed-width integers from 1 to 128 bits. Flip bits and compare binary, octal, hexadecimal, and signed or unsigned decimal values.

What you can do on octo7.org

  • Word input
  • Word readout
  • Bit pattern
  • Integer value
  • Width in bits
  • Wrap values outside this width

Reference guides & documentation

  • Read two’s complement — See why 11010110 represents 214 unsigned and −42 signed at 8 bits, and how changing the width changes what fits.