Follow Us

Binary Calculator

Do maths with binary numbers — add, subtract, multiply, divide, AND, OR, XOR — and see the answer in binary, decimal and hex.

Result

Binary

–
Decimal–
Hexadecimal–
Octal–

How to Use Binary Calculator

Solve binary maths homework or check bits for code in seconds.

1

Enter Two Binary Numbers

Type numbers using only 0 and 1, like 1011 and 110. Spaces are ignored.

2

Pick an Operation

Choose +, −, ×, ÷ or a bitwise operation: AND, OR or XOR.

3

Read the Answer

See the result in binary, decimal, hexadecimal and octal, with the working shown underneath. Switch to Convert to change between number systems.

Maths

+ − × ÷

Bitwise

AND, OR, XOR

Shows

Binary, decimal, hex, octal

Number size

Any length

Works on

Phone & computer

Price

100% free

Binary Calculator: Quick Reference

Binary addition and bitwise rules at a glance.

RuleResult
0 + 00
0 + 1 / 1 + 01
1 + 110 (write 0, carry 1)
1 + 1 + 111 (write 1, carry 1)
1 AND 11 (otherwise 0)
1 XOR 10 (1 only if the bits are different)
Example1011 (11) + 110 (6) = 10001 (17)

What Can You Use It For?

Popular ways people use Binary Calculator.

Homework

Check binary addition, subtraction and division answers.

Programming

Work out bit masks and flags with AND, OR and XOR.

Networking

Check subnet masks and IP bits.

Electronics

Verify digital logic and register values.

Tips for the Best Result

  • Group long binary numbers in 4s (like 1011 0110) — each group is one hex digit.
  • Division shows a whole-number answer plus a remainder, like long division in school.
  • Use Convert mode to turn a decimal number into binary in one step.

Frequently Asked Questions

Quick answers about Binary Calculator.

Add column by column from the right: 0+0=0, 0+1=1, 1+1=10 (write 0 and carry 1), 1+1+1=11 (write 1, carry 1).

Subtract column by column from the right, borrowing from the next column when you need to take 1 from 0 — just like decimal subtraction, but borrowing 2 instead of 10.

It gives the whole-number answer (quotient) and the remainder, both in binary and decimal.

They compare the numbers bit by bit. AND gives 1 only where both bits are 1, OR where at least one is 1, and XOR where the bits are different.

Switch to Convert, choose Decimal → Binary and type your number. The binary, hex and octal values appear straight away.

Yes, for +, −, × and ÷ — type a minus sign in front, like -101. AND, OR and XOR work with positive numbers only.

No. The calculator uses big-number maths, so very long binary numbers work exactly.

Yes — 100% free, with no sign-up. Everything is calculated in your browser.

Related Free Tools

Ready to Use Binary Calculator?

Scroll up and get your result in seconds. 100% free, no sign-up needed.

Start Now

Ad Blocker Detected

Toolszu provides free access to over 1,000 tools. We rely on minimal ads to maintain our servers and keep improving the site for everyone.

Please pause or disable your ad blocker to continue using Toolszu.