Bitwise Operations Visualizer

Mask
0x
0b
Instructions
Type a 2-digit hex (e.g. BF), an 8-bit binary (e.g. 10111111) or a shifted expression such as (1<<6) or ~(1<<6). The other fields will update automatically.
Click the operation buttons then click the variable bits below to see results update live. Bits cycle: 1 → 0 → ? → 1 ...
Variable (bits)
Mask (bits)

Result (bits)