Bitwise Operations

Visualize AND, OR, XOR, NAND, NOR, and shift operations with binary and decimal output


0000 0000 0000 0000 0000 0000 0011 1100
0000 0000 0000 0000 0000 0000 0000 1101
OperationBinary (32-bit)Decimal
ANDa & b0000 0000 0000 0000 0000 0000 0000 110012
ORa | b0000 0000 0000 0000 0000 0000 0011 110161
XORa ^ b0000 0000 0000 0000 0000 0000 0011 000149
NAND~(a & b)1111 1111 1111 1111 1111 1111 1111 0011-13
NOR~(a | b)1111 1111 1111 1111 1111 1111 1100 0010-62
SHLa << 10000 0000 0000 0000 0000 0000 0111 1000120
SHRa >> 10000 0000 0000 0000 0000 0000 0001 111030

Permalink