What are bitwise operations?
Bitwise operations work on the individual binary digits (bits) of whole numbers. AND keeps a bit only if both numbers have it set. OR keeps it if either does. XOR keeps it if exactly one does. NOT flips every bit. Shifts slide the bits left or right, and rotates move them around so none are lost.
Programmers use them for flags, masks, permissions, hashing and low-level protocols. The width matters: NOT 5 gives 250 in 8 bits but 4294967290 in 32 bits. This tool does the operation at 8, 16, 32 or 64 bits with exact results, and shows the binary and both unsigned and signed (two's complement) readings.
How to use the Bitwise Calculator
- Enter the first value and choose the operation.
- Enter the second value if the operation needs one.
- Choose the bit width.
- Read the result in hex, binary, unsigned and signed.