Binary & Hex Calculator

Add, subtract, multiply, divide and do bitwise operations in binary, octal or hex.

How to use the Binary & Hex Calculator

  1. Enter or choose the number base.
  2. Enter or choose the first number.
  3. Enter or choose the operation.
  4. Enter or choose the second number.
  5. Results update instantly as you type — press Calculate any time to refresh.

Formula

Numbers are converted to integers, calculated, then converted back.

About this calculator

Perform arithmetic and bitwise operations directly in binary, octal or hexadecimal. Results are shown in the chosen base plus decimal, binary and hex.

Frequently asked questions

What does XOR do?

It outputs 1 where the bits differ and 0 where they match.