Bitwise Operations
Perform bitwise operations with visual bit-by-bit breakdown, signed/unsigned support, and configurable bit widths.
Bitwise Operations
32-bit operations
Common Examples
AND
10 6 → 0010
Bitwise AND: 1010 & 0110 = 0010
OR
10 6 → 1110
Bitwise OR: 1010 | 0110 = 1110
XOR
10 6 → 1100
Bitwise XOR: 1010 ^ 0110 = 1100
LSHIFT
10 2 → 101000
Left shift: 1010 << 2 = 101000
RSHIFT
10 1 → 0101
Right shift: 1010 >> 1 = 0101
NOT
10 → 0101
Bitwise NOT: ~1010 = 0101
Features
Visual Bit Breakdown
See exactly how each bit is affected by the operation
Multiple Bit Widths
Support for 8, 16, 32, and 64-bit operations
Signed/Unsigned Support
Toggle between signed and unsigned interpretations
All Operations
AND, OR, XOR, NOT, shifts, and rotations
Real-time Calculation
Instant results as you type with validation
Copy Results
One-click copying of binary and decimal results
Usage Tips
•Choose your bit width (8, 16, 32, or 64 bits) based on your needs
•NOT operation requires only one operand, others need two
•Shift operations move bits left or right by the specified amount
•Rotation operations wrap bits around the ends
•Toggle "Show signed" to see two's complement interpretation
•Hover over bits to see their position and operation details
Bitwise Operations Reference
Operation | Symbol | Description | Example |
---|---|---|---|
AND | & | Both bits must be 1 | 1010 & 1100 = 1000 |
OR | | | At least one bit is 1 | 1010 | 1100 = 1110 |
XOR | ^ | Bits are different | 1010 ^ 1100 = 0110 |
NOT | ~ | Invert all bits | ~1010 = 0101 |
Left Shift | << | Move bits left | 1010 << 2 = 101000 |
Right Shift | >> | Move bits right | 1010 >> 1 = 0101 |