Binary Calculator

Add, subtract, multiply, divide, or apply bitwise operations to binary/hex/octal/decimal numbers.

Enter two numbers in binary, octal, decimal or hex and pick an operation.

Use the Binary Calculator

Binary Calculator

Enter operands and click Calculate to see the result in all four bases.

Copied!

Quick answer

Enter two numbers in binary, octal, decimal or hex and pick an operation. 1011 + 110 = 10001 (11 + 6 = 17), shown in 4-bit groups as 0001 0001 next to the octal, decimal and hex results. It also runs AND, OR, XOR, NOT and bit shifts, and integer division with the remainder.

Examples

BinaryDecimalResult
1011 + 11011 + 610001 (17)
1101 − 10113 − 51000 (8)
101 × 115 × 31111 (15)
1100 ÷ 1112 ÷ 3100 (4)
1100 AND 101012 AND 101000 (8)
1100 XOR 101012 XOR 10110 (6)
1011 << 211 << 2101100 (44)

Enter two numbers and an operation.

Summary

Add, subtract, multiply, divide, or apply bitwise operations to binary/hex/octal/decimal numbers.

How it works

  1. Enter Operand A and select its base (BIN, OCT, DEC, or HEX).
  2. Choose an operation from the dropdown: +, -, x, /, AND, OR, XOR, <<, >>, or NOT.
  3. For the unary NOT operation, Operand B is ignored automatically.
  4. Enter Operand B and select its base (also BIN, OCT, DEC, or HEX).
  5. Click Calculate to see the result displayed in binary, octal, decimal, and hexadecimal.

Use cases

  • Debug bitwise flag logic in embedded systems or low-level programming.
  • Convert numbers between binary, octal, decimal, and hexadecimal at once.
  • Verify AND/OR/XOR masks when working with network subnets or permissions.
  • Check the result of left/right shift operations used in performance-optimized code.

Frequently Asked Questions

Last updated: 2026-05-28 · Reviewed by Nham Vu