Binary Operations Calculator
Perform browser-only binary AND, OR, XOR, and shift operations with decimal and padded binary results shown side by side.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
Result
6
0000 0110
12 XOR 10 → 1100 XOR 1010 = 0110
Example shown — values are treated as 32-bit integers.
How it works
- Enter two whole numbers.
- Select a bitwise operation.
- Review the decimal result and its padded binary representation.
Bitwise operations compare corresponding binary digits. AND requires both bits, OR requires either bit, and XOR requires exactly one bit.
FAQ
What does XOR do?
XOR sets a bit when the corresponding input bits differ.
What are shifts?
Shifts move binary digits left or right; left shifts commonly multiply by powers of two.
Are negative values supported?
They are handled as JavaScript 32-bit integers.
How we compare
| Feature | Online Tool Store | Programmer calculator | Manual conversion |
|---|---|---|---|
| Shows binary result | ✓ | ✓ | Manual |
| No installation | ✓ | Varies | ✓ |