Binary Logic Operations Tool
Calculate bitwise operations including AND, OR, XOR, NOT, left shift, and right shift. Perfect for digital logic design, programming, and computer science applications.
Enter in decimal (42) or binary (0b101010) format
For shifts, enter the number of positions to shift
Common bitwise calculations and their applications
Masking specific bits - common in flag operations
Operation: and
First: 42
Second: 15
Setting specific bits - used in permission systems
Operation: or
First: 0b1010
Second: 0b0101
Toggling bits - used in encryption and checksums
Operation: xor
First: 255
Second: 170
Multiplying by powers of 2 - optimization technique
Operation: leftShift
First: 7
Second: 2