Binary Calculator
Perform addition, subtraction, multiplication, or division on two non-negative integers and see the result rendered in any of four numeral systems — binary (base 2), decimal (base 10), hexadecimal (base 16) or octal (base 8). Type the two values as plain decimal numbers; the calculator treats them as if they were written in the chosen system and shows the answer in that same system. For example, with Numeral system = Binary, enter A = 204 and B = 170 to compute 11001100 + 10101010 = 101101110.
Your Result
-
| Result | What it means? |
|---|---|
| — | ResultThe operation produced a finite numeric result in the chosen numeral system. |
| — | No resultInputs are out of range, negative, or otherwise invalid for the chosen numeral system. |
| — | Division by zeroDividing any number by zero is undefined — enter a non-zero divisor. |
| — | Non-integer resultIn binary, hexadecimal and octal there are no fractional places — the result is only shown when it is an exact integer. |
How it works
=
Pick an operation and a numeral system, then enter the two values as decimal numbers that you want to see rendered in that base. The calculator performs A (op) B and shows the answer both in your chosen system and in decimal.
- Binary uses digits 0–1, octal uses 0–7, decimal uses 0–9 and hexadecimal uses 0–9 plus A–F. The same integer can be written compactly in any of them.
- Addition combines the two values. Subtraction subtracts B from A. Multiplication scales A by B. Division splits A by B (undefined when B is zero, and only valid when the result is an exact integer in the chosen base).