Binary Calculator adds, subtracts, multiplies and divides two base-2 numbers and shows the result in binary, decimal and hexadecimal at the same time. Type each operand using only 0s and 1s, pick an operation, and the tool computes an exact BigInt result so nothing overflows even for long bit strings. It is built for students learning binary arithmetic, computer science and electronics courses, and developers who need to check a manual binary calculation or convert a base-2 result to decimal or hex without switching tools. Division truncates toward zero and subtraction that goes below zero is shown with a leading minus sign in every base. Everything runs locally — no numbers are uploaded.
Features
Add, subtract, multiply and divide binary numbers with exact BigInt precision
See the result in binary, decimal and hexadecimal at the same time
Validates input so only the digits 0 and 1 are accepted
Handles results of any length without 32-bit overflow
Subtraction below zero shows a signed result in binary and hex
Division truncates toward zero, matching standard integer division
One-click copy of the full result summary
Runs entirely in your browser with no numbers sent anywhere
How to use the Binary Calculator
Choose an operation: add, subtract, multiply or divide
Type the first binary number using only 0s and 1s
Type the second binary number
Read the result in binary, decimal and hex, or copy the summary
Example
Input
1010 + 0110
Output
10000 (16)
1010 (10) plus 0110 (6) gives 10000 in binary, which is 16 in decimal.
Common errors & troubleshooting
Binary Calculator shows 'Binary numbers may only contain the digits 0 and 1.' — Remove any digit other than 0 or 1 — a stray 2, a decimal point, or a 0x/0b prefix will trigger this error.
Dividing two binary numbers gives a smaller result than expected. — Binary division truncates toward zero, like integer division — 1010 ÷ 11 (10 ÷ 3) returns 11 (3), not a fraction or a rounded value.
Subtracting a larger binary number from a smaller one. — The result is negative and is shown with a leading minus sign in binary, decimal and hex — for example 10 − 1010 gives -1000 (-8).
Binary Calculator shows 'Cannot divide by zero.' — The second operand parsed to zero (for example 000); enter a non-zero binary divisor.
Frequently asked questions
What operations does the Binary Calculator support?
The Binary Calculator supports addition, subtraction, multiplication and division on two base-2 numbers, returning the result in binary, decimal and hex.
How does the Binary Calculator convert binary to decimal?
It parses each input as a base-2 integer, performs the chosen operation, and displays the exact decimal value alongside the binary and hexadecimal forms.
Can the Binary Calculator handle very large binary numbers?
Yes. It computes with BigInt internally, so long bit strings and large sums, products or differences stay exact instead of overflowing at 32 or 64 bits.
What happens if I divide binary numbers that do not divide evenly?
The Binary Calculator performs integer division and truncates toward zero, the same way standard integer division works — there is no fractional or decimal remainder shown.
Does the Binary Calculator validate my input?
Yes. It checks that each operand contains only the digits 0 and 1 and shows a clear error if any other character, including a 0b prefix, is entered.
Are the numbers I enter in the Binary Calculator sent anywhere?
No. The Binary Calculator runs entirely in your browser. The numbers you type are computed locally and are never uploaded to ArrayKit.
Related tools
Hex Calculator — Add, subtract, multiply and divide hexadecimal numbers and convert bases.
Bitwise Calculator — Apply AND, OR, XOR, NOT and bit shifts to integers, with binary, hex and decimal views.