Binary Arithmetic Calculator

Add, subtract, multiply, divide and bitwise on binary numbers.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Binary arithmetic calculator

Run arithmetic and bitwise operations on two binary numbers: add, subtract, multiply, divide (integer quotient), plus the bitwise AND, OR and XOR. Every result is shown at once in binary, decimal and hexadecimal — useful for learning binary maths or debugging bit flags.

How it works

Each operand is validated to contain only 0 and 1, then parsed into an arbitrary-precision integer (BigInt) by accumulating value × 2 + bit. The selected operation is applied directly to those integers — +, , ×, integer ÷, or the bitwise &, |, ^. The result is then formatted back into binary, decimal and hex. Because BigInt is used, even long strings compute exactly with no overflow.

Example

With A = 1010 (10) and B = 0110 (6):

OperationBinaryDecimalHex
Add10000160x10
Subtract10040x4
Multiply111100600x3C
Divide110x1
AND1020x2
OR1110140xE
XOR1100120xC

Everything runs locally in your browser — nothing is uploaded.

Ad placeholder (rectangle)