About the Binary Calculator
The Binary Calculator performs arithmetic and bitwise operations on two binary numbers: addition, subtraction, multiplication, integer division, AND, OR, XOR, left shift and right shift. The result is shown in binary along with its decimal value.
How to use the Binary Calculator
- Enter binary number A and B (only 0 and 1 are used).
- Choose the operation.
- Read the binary and decimal result.
Example
Addition and AND
1010 + 0110 = 10000 (10 + 6 = 16). 1010 AND 0110 = 0010 (2).
Frequently asked questions
Is division exact?
No, it is integer division: the remainder is discarded.
How large can the numbers be?
Arithmetic is exact up to 2⁵³. Bitwise operations (AND, OR, XOR, shifts) use 32-bit signed integers, so larger values wrap around.
How is the shift amount set?
For shifts, number B is the number of positions to shift.