Interactive Binary Bitwise Calculator & Bit Inspector
Perform bitwise operations (AND, OR, XOR, NOT, Shifts), view 32-bit registers, and count active bits.
The fascinating world of numbers
Perform bitwise operations (AND, OR, XOR, NOT, Shifts), view 32-bit registers, and count active bits.
Perform bitwise operations (AND, OR, XOR, NOT, Shifts), view 32-bit registers, and count active bits.
Bitwise operators manipulate individual bits of binary numbers. They are fundamental in system programming, networking masks, cryptography, graphics rendering, and embedded systems.
| A | B | AND (&) | OR (|) | XOR (^) |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 |
42 = 0010 1010₂
15 = 0000 1111₂
42 & 15 = 0000 1010₂ = 10 (Hex 0xA).
Hamming weight is the total number of non-zero bits (1s) in a binary string (also known as population count or popcount).