Calculate bitwise

Evaluate integer AND, OR, XOR, NOT, and shifts with binary and hexadecimal views.

freeworks offlinenothing uploaded
ToolBitwise Calculator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Integer operands are converted to binary words and evaluated with bitwise AND, OR, XOR, and left or right shifts. The result is shown in decimal, binary, and hexadecimal so each changed bit can be inspected.

  • A 32-bit display is a familiar debugging view.
  • Large integer input is kept exact instead of passing through floating-point Number.

Worked example

Bitwise AND
Perform a bitwise AND on two values (masking)
Input
											255, 15
										
Output
												255 AND 15 = 15
Decimal: 15
Binary: 1111
Hex: 0xF
Octal: 0o17
											

When to use this

Feature flags, packed network headers, and systems programming exercises inspect bit masks.

Edge cases

  • Negative operands need a selected width for a finite two’s-complement display.
  • A shift beyond the displayed width can erase every bit or widen the integer.
  • Values above 2^53 lose Number precision, so large values are treated as BigInt text.