🌐 EN

💻 Binary Calculator

Convert small nonnegative integers between decimal and binary and calculate with binary values.

Decimal Input → Binary

Binary
—

Binary Input → Decimal

Decimal
—

Binary Operations

Result
—
Decimal —

Inputs and checks

  • Enter a whole decimal number in Decimal to Binary or a string of 0 and 1 in Binary to Decimal. Results update as you type.
  • For binary arithmetic, enter two values containing only 0 and 1, choose an operation and press Calculate.
  • Binary means base two, a way to write numbers using only 0 and 1. Use modest nonnegative whole numbers for consistent results.
  • The division operation returns a whole-number quotient, rounded down. There is no bitwise AND, OR or XOR operation.

Reading the result

  • Each arithmetic result is shown in binary and decimal; for example 101 times 11 gives 1111 and 15.
  • Characters other than 0 or 1 in a binary input are removed rather than reported as an error. Avoid extra characters.
  • Negative results have inconsistent sign handling across outputs, very large integers can lose precision, and dividing by zero returns 0.

Examples

Convert 42 both ways

Input
Type 42 in Decimal to Binary and 101010 in Binary to Decimal.
Result
The first result is 101010; the second result is 42.
How to check it
In binary, the active places are 32, 8 and 2, which sum to 42.

Multiply two binary numbers

Input
In Binary Operations, enter 101 and 11, choose Multiply and press Calculate.
Result
Binary result: 1111. Decimal result: 15.
How to check it
Binary 101 is 5 and 11 is 3. Their product is 15, written 1111 in binary.

Frequently asked questions

Can I enter letters into a binary number?
Use only 0 and 1. Other characters may be silently removed.
Does this calculator support bitwise operators?
No. It offers arithmetic, not AND, OR, XOR or bit shifts.
Can I rely on negative binary subtraction?
No. The binary sign handling for negative results is inconsistent; use nonnegative results.