Two's Complement Calculator - Free, Instant, In Your Browser
Enter an integer and a bit width to see its two's complement binary representation.
How to use Twos Complement Calculator
- 1Enter the required date(s) and details above.
- 2Click Calculate - Twos Complement Calculator runs instantly, right in your browser.
- 3Read your result below.
Your file is processed in your browser and is never uploaded.
Frequently Asked Questions
What's the formula?
Negative numbers are represented by inverting all bits of the positive value and adding 1, e.g. -5 at 8 bits is 11111011.
Is my data sent to a server?
No - everything runs entirely in your browser with JavaScript. Nothing is uploaded.