Bitwise Calculator

Work on two whole numbers bit by bit with AND, OR, XOR, shifts and NOT. Results use 32-bit numbers, the way computers store them.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the Bitwise Calculator

  1. Type the first number.
  2. Pick the operation, then type the second number. NOT does not need it.
  3. The result shows in decimal, hex and binary.

Frequently asked questions

What does AND do?

AND keeps a bit only when both numbers have it set to 1. So 12 AND 10 is 8.

Why can a result be negative?

Computers store numbers in 32 bits, and the top bit marks a negative number. NOT 5 gives -6.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.