OR Calculator
Perform bitwise OR operations on large numbers with binary visualization.
OR
Result (Dec)
0
Result (Bin)
0
Result (Hex)
0
Bit-by-Bit OR Visualization
What is bitwise OR?
The bitwise OR operation takes two equal-length binary representations and performs the logical inclusive OR operation on each pair of the corresponding bits. If either bit in the compared position is 1, the resulting bit is 1; otherwise, the result is 0.
OR Truth Table
| Input A | Input B | Output |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Frequently Asked Questions
How does bitwise OR work?
It compares each bit of two numbers. If either bit is 1, the result bit is 1. If both bits are 0, the result is 0.
When is bitwise OR used?
Bitwise OR is commonly used to set specific bits in a value, or to combine multiple flag values into a single variable.