
Apply AND, OR, XOR and bit shifts. Handy for students, analysts and engineers checking a calculation or conversion before using the result.
Apply AND, OR, XOR and bit shifts. See a clear result update immediately in your browser, with no account, upload or stored data to worry about.
A student prepares an exercise about binary masks using the input 12 and 10. They run the calculation and examine the result to understand which bits remain active after the AND operation.
Input
12
and
10The bitwise calculation is performed locally in your browser. The numbers and operator you enter stay on your device, with no upload or storage. No external request is needed to get the answer.
AND keeps bits shared by both numbers, OR keeps bits present in either number, and XOR keeps bits that differ. These are standard bitwise logical operations in computing.
SHL shifts bits to the left and SHR shifts them to the right. A shift changes the value, and bits moved outside the available width may be lost depending on the context.
You can try, but results may depend on the representation used by the browser. For demanding work, check the integer width and the expected format carefully.