Bitwise Calculator
Perform bitwise operations on different number formats with ease.
Result:
Result will appear here...
About Bitwise Operations
Bitwise operations work on the binary representation of numbers. Each bit in a number is treated independently. This calculator supports several common bitwise operations:
- AND (&): Returns 1 if both bits are 1, otherwise 0.
- OR (|): Returns 1 if at least one of the bits is 1, otherwise 0.
- XOR (^): Returns 1 if the bits are different, otherwise 0.
- NOT (~): Inverts the bits. (Unary operation, only requires one number).
- Left Shift (<<): Shifts bits to the left, filling with zeros on the right. Effectively multiplies by powers of 2.
- Right Shift (>>): Shifts bits to the right. For positive numbers, it fills with zeros (logical shift), effectively dividing by powers of 2.
Use this tool to explore and understand bitwise operations in decimal, binary, hexadecimal, and octal formats. Select the bit size to simulate operations on fixed-size registers, common in computer systems.