Binary Calculator
A binary calculator performs arithmetic directly on base-2 numbers — addition, subtraction, multiplication, and bitwise AND/OR/XOR — showing the result in binary and decimal. Bitwise AND, OR, and XOR operate independently on each pair of binary digits rather than treating the numbers as a whole, which is why they are used throughout programming for tasks like combining permission flags or toggling bits — arithmetic operations a calculator restricted to decimal input cannot easily demonstrate.
How it works
- Enter two binary values (0s and 1s only).
- Choose an operation: add, subtract, multiply, AND, OR, or XOR.
- Read the result in binary and decimal.
Formula BigInt arithmetic on 0b-parsed values; bitwise ops via native &, |, ^
Frequently asked questions
How is this different from the hex calculator?
Same operations, different base — this one takes and shows binary (base 2) instead of hexadecimal (base 16).
Can I subtract a larger value from a smaller one?
No — this calculator only handles non-negative results; subtraction that would go negative returns no result.
Is there a size limit on the numbers?
No practical limit — this uses arbitrary-precision BigInt arithmetic, not fixed 8/16/32-bit registers.
Is my data uploaded anywhere?
No. Calculation runs entirely in your browser.
Can I convert the result to hexadecimal too?
Not directly on this page — this tool shows binary and decimal only. Use the hex calculator or decimal-to-binary converter alongside it to bridge to base 16.