Bitwise Calculator
Enter two numbers and apply any bitwise operation — AND, OR, XOR, NAND, NOR, or XNOR — with results in decimal, binary, hex, and octal.
Last updated: May 29, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Bitwise Calculator?
Bitwise Calculator performs all six standard two-operand bitwise operations on unsigned 32-bit integers. It accepts input in decimal, binary, hexadecimal, or octal and displays the result in all four bases simultaneously. It also shows the bitwise NOT of each individual operand. Operations use JavaScript's unsigned right-shift (>>> 0) to ensure consistent unsigned 32-bit representation for positive display values.
How to Use Bitwise Calculator
Select the input base.
Enter two numbers.
Choose an operation.
Copy the result in any base.
Common Use Cases
- Setting, clearing, or toggling specific bits in embedded system registers.
- Computing network masks and subnet addresses.
- Implementing hash functions or checksums that use XOR operations.
- Understanding how NAND/NOR logic gates work in digital circuits.
Example Input and Output
XOR of 12 and 10.
A: 12 (1100₂)
B: 10 (1010₂)
Op: XORXOR: 6 (0110₂)Privacy
All calculations run locally in the browser.

