Bitwise Calculator
AND, OR, XOR, NOT and bit shifts of two integers, with binary shown.
Enter values
—
—
Step by step
The formula
operations are on 32-bit two’s-complement integers
All calculations run locally in your browser and update instantly as you type.
Related calculators
Frequently asked questions
Why is NOT A negative?+
JavaScript-style bitwise NOT flips every bit of a 32-bit two’s-complement integer, so ~12 = −13. In two’s complement, ~x always equals −x − 1.
All calculations run locally in your browser. Nothing you type is sent to a server.