Tested tool guide
Tested browser tools
Checked August 16, 2026
What Bit Manipulation Calculator does, with a checked example
This calculator takes one or two decimal or binary numbers and performs bitwise operations such as AND, OR, XOR, NOT, and left/right shifts. It displays the binary representation of each operand and result, and gives a step-by-step explanation of how the operation proceeds bit by bit. The most common surprise is that bitwise operations work on the full binary representation of the number, not on its decimal digits; for example, 5 AND 3 equals 1, not 0 or 5, because only the lowest bit is set in both.
Worked example
A concrete input and expected output from the current implementation.
->
Expected output
Result: 1 (binary: 001 & 011 = 001). Explanation: 5 = 101, 3 = 011. AND: bit 0: 1 & 1 = 1, bit 1: 0 & 1 = 0, bit 2: 1 & 0 = 0. Result: 001 = 1.
The AND operation compares each corresponding bit: only bit 0 is 1 in both numbers, so the result is binary 001, which is decimal 1.