Binary Calculator

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

Use the Binary Calculator

Binary Calculator

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

Copied!

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-09-22 · Reviewed by Nham Vu