Binary & Hex Calculator
Add, subtract, multiply, divide and do bitwise operations in binary, octal or hex.
How to use the Binary & Hex Calculator
- Enter or choose the number base.
- Enter or choose the first number.
- Enter or choose the operation.
- Enter or choose the second number.
- 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.