ToolSpark

Binary Calculator

Perform arithmetic and bitwise operations on binary numbers. Supports addition, subtraction, AND, OR, XOR, NOT, and bit shifts.

Share:𝕏fin
10100110

Operation

BIN110DEC6HEX0x6
10 + 6 = 16
0001 0000

📝 Calculation

0000 1010
+ 0000 0110
= 0001 0000
1
Set Bits (1s)
7
Clear Bits (0s)
8
Total Bits
📚 Bitwise Operations Reference
AND (&)
Both bits must be 1 to produce 1
1010 & 0110 = 0010
OR (|)
Either bit being 1 produces 1
1010 | 0110 = 1110
XOR (^)
Exactly one bit must be 1 to produce 1
1010 ^ 0110 = 1100
NOT (~)
Flips all bits (1 becomes 0, 0 becomes 1)
~1010 = 0101
<< (Left Shift)
Shifts bits left, filling with 0s (multiplies by 2^n)
1010 << 1 = 10100
>> (Right Shift)
Shifts bits right, dropping bits (divides by 2^n)
1010 >> 1 = 0101
Ctrl+C Copy binary result

Frequently Asked Questions

📖 Related Articles

Related Tools