Math & Number Utilities100% Client-Side

Add Two Binary Integers

Enter two unsigned bit strings to calculate their sum in binary. Put each operand on its own line or separate the two with whitespace. The calculator interprets both operands as integers, so the sum can have more bits than either input. It keeps large values exact within its input limits. Use the result to check a carry calculation or an arithmetic fixture.

Input
9 chars•2 lines
Output

How to Use the Binary Addition Calculator Online

  1. 1Paste two unsigned binary values. Put them on separate lines or separate them with a space.
  2. 2Use zero and one as digits. You can keep an optional 0b prefix or single underscores between digit groups.
  3. 3Compare the complete integer result, including any higher bits created by the operation.
  4. 4Copy the complete result into your exercise or fixture and keep the original operands for a later comparison.

Input & Output Examples

The inputs represent decimal ten and twelve. Their sum is decimal twenty-two, written as 10110.

Input Sample
1010
1100
Expected Output
10110

A carry moves through all four set positions and produces one additional bit.

Input Sample
0b1111
1
Expected Output
10000

Practical Developer Workflows

  • Check carries in a binary addition exercise.
  • Calculate the expected result for a test that adds unsigned bit strings as integers.
  • Compare the exact sum of operands with unequal widths.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

Adding one and one gives binary 10. Write zero at that position and carry one into the next higher position. A carry can continue across several positions and can add a new bit at the front.

Explore Other Tools

12 suggested tools

View all tools