About the Bitwise Calculator

Apply AND, OR, XOR, NOT, NAND, NOR, and bit shifts with the full binary working shown.

What it is

Bitwise operations show up constantly in low-level programming โ€” flags, masks, permission bits, and packed data. This tool applies any of the standard bitwise operations to your numbers and shows the result as aligned bit columns, so you can see exactly which bits changed and why, at whatever bit width your problem calls for.

Features

Seven operations

AND, OR, XOR, NOT, NAND, NOR, and left/right bit shifts (logical and arithmetic).

Multi-base input

Enter values in decimal, hex (0x), or binary (0b) โ€” parsed automatically.

Aligned bit-column visualization

Operands and result are shown side by side, bit by bit, grouped in nibbles.

Configurable bit width

Switch between 8, 16, and 32-bit widths to see sign extension and wraparound behavior.

Two's complement handling

Negative numbers are represented correctly at the chosen bit width.

Shift validation

Shift amounts at or beyond the bit width are flagged instead of silently computed.

Ready to use it?

Free, no sign-up required.

Open the Bitwise Calculator