Bitwise calculator

AND, OR, XOR, NOT, and shifts on two integers — 8 to 64 bit views with hex, decimal, and binary.

AND / OR / XOR / NOT / shifts on decimal, 0x hex, or 0b binary integers at a fixed bit width.

Everything runs in this browser.

How to use

  1. Enter operand A and B (decimal or 0x hex).
  2. Pick the bit width and operation.
  3. Read the result in all three bases.

What it supports

BigInt arithmetic, widths 8/16/32/64 bit, operands in decimal/hex/binary/octal up to 400 digits — values are masked to the chosen width. NOT and shifts operate at the chosen width; results show the two's-complement bit pattern.

Related tools

Related guides