Bitwise Operations Calculator (AND, OR, XOR, NOT, Shifts)

Perform bitwise AND, OR, XOR, NOT and shifts on integers in decimal, hex (0x) or binary (0b).

Results

A AND Bβ€”
A OR Bβ€”
A XOR Bβ€”
NOT Aβ€”
A << shiftβ€”
A >> shiftβ€”

How to use the Bitwise Operations Calculator

  1. Enter or select: A, B, Word size for NOT, Shift amount.
  2. The results (A AND B, A OR B, A XOR B, NOT A, A << shift, A >> shift) are calculated instantly as you type.
  3. Use β€œCopy link” to share the calculation with the same input values.