Bitwise calculator

Run logic operations on the bits of two numbers and see the result in decimal, hex and binary.

About this tool

Bitwise operations compare two numbers bit by bit. AND keeps a bit only when both numbers have it, OR when either has it, XOR when exactly one has it, and NOT flips every bit. NAND, NOR and XNOR are those results flipped. Choose the number system and the bit width, which decides how many bits NOT and the shifts work with. Results are shown in decimal, hex and binary.