Two's Complement / Signed Integer Calculator
Convert between signed decimal and two's-complement binary at any width (4/8/16/32/64-bit or custom up to 256-bit). Step-by-step negation (invert → +1), one's-complement and sign-magnitude side-by-side, clickable bit grid with MSB sign bit highlighted, hex/octal views, range & overflow detection, and sign-extension / truncation visualization. BigInt-correct, fully client-side.
Convert between signed decimal and two's-complement binary at any width (4/8/16/32/64-bit or custom up to 256-bit). Step-by-step negation (invert → +1), one's-complement and sign-magnitude side-by-side, clickable bit grid with MSB sign bit highlighted, hex/octal views, range & overflow detection, and sign-extension / truncation visualization. BigInt-correct, fully client-side. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.