Binary Calculator
Enter two binary numbers and choose an operation.
AND, OR and XOR compare the numbers digit by digit.
Only the digits 0 and 1; a leading minus sign is allowed.
Only the digits 0 and 1; a leading minus sign is allowed.
Result
You entered
Decimal
Hex
Show the work
Binary to decimal
Each binary digit is worth a power of , counting from at the right. Converting both numbers to decimal lets the operation be done with ordinary arithmetic.
Using
Division with a remainder
Dividing by gives a whole-number quotient and a remainder that is smaller than the divisor in size.
Using
Decimal to binary
Write the quotient and the remainder in binary.
Result
So gives quotient and remainder .
Worked examples
Binary addition with carries, Check in decimal
Binary to decimal, Subtraction in decimal
Binary to decimal, Subtraction in decimal
Binary to decimal, Multiplication in decimal
Binary to decimal, Division with a remainder
Binary to decimal, Bitwise AND
Binary to decimal, Bitwise OR
Binary to decimal, Bitwise XOR