Skip to content
ToolHub

Binary Calculator

Add, subtract, multiply, divide and apply AND, OR, XOR and shifts to binary numbers.

</>
DevCalc Pro
Programming & Developer Tools
⚡ Result
—
—
ƒ Info
History 0
📋
No calculations yet
Your history will appear here

About the Binary Calculator

The Binary Calculator performs arithmetic and bitwise operations on two binary numbers: addition, subtraction, multiplication, integer division, AND, OR, XOR, left shift and right shift. The result is shown in binary along with its decimal value.

How to use the Binary Calculator

  1. Enter binary number A and B (only 0 and 1 are used).
  2. Choose the operation.
  3. Read the binary and decimal result.

Example

Addition and AND

1010 + 0110 = 10000 (10 + 6 = 16). 1010 AND 0110 = 0010 (2).

Frequently asked questions

Is division exact?

No, it is integer division: the remainder is discarded.

How large can the numbers be?

Arithmetic is exact up to 2⁵³. Bitwise operations (AND, OR, XOR, shifts) use 32-bit signed integers, so larger values wrap around.

How is the shift amount set?

For shifts, number B is the number of positions to shift.

Use ↑ ↓ to move, Enter to open.