OR Calculator
Enter two unsigned binary strings. The output has the length of the longer input; the shorter input is padded with zeros on the left.
Formula
Each result bit is 1 when either or both input bits are 1.
How to use
- Enter the first binary string.
- Enter the second using only 0 and 1.
- Read the OR result with its leading zeros.
Examples
- 1010 OR 1100 = 1110.
Frequently asked questions
What sets the output width?
The longer input sets the width, including all of its leading zeros.
Can I use signed numbers?
No. Enter only binary digits; a leading 1 is a bit, not a minus sign.
Can both input bits be 1?
Yes. OR returns 1 when one or both input bits are 1; XOR returns 0 when both are 1.
Sources
Updated: