Dev Tool
Bitwise Calculator
Perform AND, OR, XOR, NOT, and shift operations with binary visualization.
⚙️Calculator
Result: A & B
Decimal (signed): 10
Decimal (unsigned): 10
Hex: 0x0000000A
Octal: 0o12
Binary: 0000 0000 0000 0000 0000 0000 0000 1010
🔍Bit Visualization
A:0000 0000 0000 0000 0000 0000 0010 1010
B:0000 0000 0000 0000 0000 0000 0001 1011
&0000 0000 0000 0000 0000 0000 0000 1010
📖Operation Reference
AND (&)
Result is 1 only when BOTH bits are 1
OR (|)
Result is 1 when EITHER bit is 1
XOR (^)
Result is 1 when bits are DIFFERENT
NOT (~)
Flips every bit (0→1, 1→0)
LSHIFT (<<)
Shifts bits left, filling with 0s (multiply by 2^n)
RSHIFT (>>)
Shifts bits right, preserving sign (divide by 2^n)