Bitwise Operation Visualizer
Visualize AND/OR/XOR/NOT/Shift Operations - Free Online Tool
Visualize bitwise operations (AND, OR, XOR, NOT, Shift) on two numbers with interactive bit grids. View results in decimal, hex, and binary simultaneously. Click individual bits to toggle them.
Bits of A (click to toggle):
Bits of B (click to toggle):
1
Bitwise Operation Basics
Operation Types and Descriptions
| Operation | Symbol | Description |
|---|---|---|
| AND | & | Result is 1 only if both bits are 1. Used for bit masking. |
| OR | | | Result is 1 if either bit is 1. Used for setting flags. |
| XOR | ^ | Result is 1 if bits differ. Used for encryption and swapping. |
| NOT | ~ | Inverts all bits. Used for complement calculations. |
| Left Shift | << | Shifts bits left. Equivalent to multiplying by 2^n. |
| Right Shift | >> | Shifts bits right. Equivalent to dividing by 2^n. |