Bitwise Calculator: AND, OR, XOR, NAND, NOR, XNOR

Run bitwise AND, OR, XOR, NAND, NOR and XNOR on 32-bit numbers and see decimal, hex and binary results.

About Bitwise Calculator: AND, OR, XOR, NAND, NOR, XNOR

Compute bitwise AND, OR, XOR, NAND, NOR and XNOR on two 32-bit unsigned numbers and see the result in decimal, hex and 32-bit binary. Bitwise operations are used for flags, masks, permissions and low-level code.

Inputs can be decimal, 0x hex or 0b binary values from 0 to 4294967295.

How to use it

  1. Type an expression such as 12 AND 10.
  2. Use one of AND, OR, XOR, NAND, NOR or XNOR.
  3. Read the decimal, hex and binary results.

Questions

Is my text uploaded?

No. Everything runs in your browser; nothing you type or generate is sent to a server.

Why does NOT of a bit look different?

NAND, NOR and XNOR invert the result over 32 bits, so the output uses all 32 bits.

Can I use bigger numbers?

Inputs are limited to 32 bits, which matches most flags and masks in common languages.

More Math & Randomness tools

Home · All Tools · Blog