Binary Calculator

Add, subtract, multiply, divide and AND/OR/XOR binary numbers

Do arithmetic and bitwise operations (AND, OR, XOR, NOT, shifts) on binary numbers, with the answer in binary, decimal, hex and octal.
Share
Try an example:
Your result will appear here as you type.

About Binary Calculator

Formula

1 + 1 = 10 (carry 1); 1 AND 1 = 1, otherwise 0

Worked examples

1011 + 110

11 + 6 = 17 = 10001 in binary.

How it works

  1. Both numbers are converted to integers, combined, and converted back to binary.
  2. Bitwise operations compare the numbers bit by bit.
  3. NOT flips every bit within the width you choose.

What you need

  • Binary numbers using only 0 and 1.

Tips

  • Shifting left by 1 doubles a number; right by 1 halves it (dropping the remainder).

Limitations

  • Whole numbers only.

Runs in your browser. Calculations run in your browser - nothing you enter is sent anywhere.

Definitions

Bit
A binary digit, 0 or 1.
XOR
1 when the bits differ.

Frequently asked questions

How do I convert binary to decimal?+

Each bit is a power of 2 from the right: 1011 = 8 + 0 + 2 + 1 = 11. The result also shows decimal.

Was this calculator helpful?