Binary Calculator
Perform addition, subtraction, multiplication, and bitwise operations on binary numbers with decimal conversion
Decimal: 10
Decimal: 12
Result
Binary
00001000
Decimal
8
Hexadecimal
0x8
Octal
0o10
Step by Step
How to Use This Tool
Enter binary numbers in the A and B input fields (only 0s and 1s).
Select an operation: AND, OR, XOR, NOT, Add, Subtract, Left Shift, or Right Shift.
View the result in Binary, Decimal, Hexadecimal, and Octal.
For bitwise operations (AND/OR/XOR), see the step-by-step bit alignment.
About This Tool
Binary Calculator performs arithmetic and bitwise operations on binary numbers. Supports AND, OR, XOR, NOT, addition, subtraction, and bit shifting. Results are displayed in four formats: binary, decimal, hexadecimal, and octal. For bitwise operations, a visual step-by-step display aligns bits vertically with color-coded 0s and 1s and position labels.
Frequently Asked Questions
Bitwise operations are used in low-level programming, networking (subnet masks), graphics (color manipulation), cryptography, and performance optimization. AND masks bits, OR sets bits, XOR toggles bits.
Left shift (<<) multiplies by 2 for each shift position. Right shift (>>) divides by 2. They're used for fast multiplication/division and bit manipulation.
Share This Tool
Related Tools
Scientific Calculator
Full-featured scientific calculator with trigonometry, logarithms, exponents, and memory functions
Prime Number Checker
Check if any number is prime, find its factors, and discover the nearest prime numbers above and below
Factorial Calculator
Calculate factorials, permutations, and combinations for any number with step-by-step computation
GCD/LCM Calculator
Find the Greatest Common Divisor and Least Common Multiple of two or more numbers with detailed steps