Bitwise Calculator

AND, OR, XOR, NOT, shifts on two integers. 8/16/32/64-bit widths. BigInt-backed.

published

  • [FREE]
  • [NO_SIGNUP]
  • [NO_UPLOAD]

A bitwise calculator runs AND, OR, XOR, NOT, and three shift variants on two integer inputs at once. Every result in decimal, binary, and hex.

Privacy

Pure JS BigInt. No upload.

Frequently asked questions

What input formats are accepted?

Decimal, 0b binary, 0o octal, 0x hex. Underscores between digits are ignored (0b1111_0000 = 240). Negative decimals work.

Logical vs arithmetic shift right?

Logical (>>>) fills the top bits with zeros — useful for unsigned values. Arithmetic (>>) preserves the sign bit — -8 >> 1 = -4. The calculator shows both side-by-side.

Why a width selector?

Binary output is padded to the selected width (8/16/32/64). Affects how negative numbers and shift results look — try -1 at 8-bit (11111111) vs 32-bit.

Why BigInt?

JavaScript Number maxes at 2^53. 64-bit hardware values exceed that. BigInt handles arbitrary precision.