Binary Calculator
Perform arithmetic with binary numbers and convert between binary and decimal. See answers in binary, decimal, hexadecimal and octal using exact integer arithmetic.
Calculate two binary numbers
Binary to decimal
Decimal to binary
How to use the binary calculator
- Enter the first binary value using only 0 and 1.
- Choose an arithmetic or bitwise operation, then enter the second value.
- Select Calculate result to view the answer in binary, decimal, hexadecimal and octal.
- Use the separate converter panels to convert binary to decimal or decimal to binary.
Binary number formula
Binary is a base-2 number system. Each digit's place value is a power of two, starting at \(2^0\) on the right. To convert binary to decimal, multiply each bit by its place value and add the results.
The calculator supports whole numbers only. Division returns an integer quotient rounded toward zero and also reports the remainder. Negative values use a leading minus sign; bitwise operations are intended for non-negative values.
Binary calculator FAQs
What is a binary calculator?
A binary calculator performs arithmetic on numbers written in base 2, using only the digits 0 and 1.
How do I convert binary to decimal?
Multiply each binary digit by the power of two for its position, counting from zero on the right, and add those values. For example, 1010 equals 8 + 2 = 10.
How do I convert decimal to binary?
Repeatedly divide the positive decimal integer by two and read the remainders in reverse order. This calculator performs that conversion for you.
What is 1 + 1 in binary?
1 + 1 = 10 in binary, which equals 2 in decimal.
What happens when I divide binary numbers?
The calculator returns the integer quotient and the remainder. It does not display a fractional binary result.
Does the calculator support very large binary values?
Yes. It uses JavaScript BigInt for exact integer arithmetic, subject to your browser's available memory and processing capacity.