Bitwise Calculator

Your data never leaves your browser

Perform bitwise operations (AND, OR, XOR, NOT, shift left, shift right) on integers.

Brie — Bug Reporting Tool

Found a bug while testing?

Brie captures screenshots, console logs, network data, and session replays in one click — so developers get the full context without the back-and-forth.

About Bitwise Calculator

Enter one or two integers and apply a bitwise operation: AND, OR, XOR, NOT (single operand), left shift, or right shift. Results are displayed in decimal, hexadecimal, and binary. Ideal for low-level programming, embedded systems, and flag masking.

How to use

  1. Enter the first number (and second number for binary operations).
  2. Select the bitwise operation.
  3. The result appears instantly in decimal, hex, and binary.

More Math / Calculators

Frequently Asked Questions

FAQs about Bitwise Calculator

How many operands does NOT require?

NOT is a unary operation and only needs the first number. The second number is ignored.

How does shift work?

Left shift (<<) multiplies by 2 for each bit shifted. Right shift (>>) divides by 2 for each bit shifted (arithmetic, sign-preserving).

What bit width is used?

JavaScript uses 32-bit signed integers for bitwise operations, so the range is −2,147,483,648 to 2,147,483,647.

What is AND useful for?

AND is commonly used to extract specific bits (masking), check whether a flag is set, and clear bits in a value.

Is my data safe?

All calculation runs in your browser. No data is sent to any server.