Bitwise Calculator

Calculate AND, OR and XOR for two whole numbers.

How to use

  1. Enter your values in the fields above.
  2. Press Calculate to see your result instantly.
  3. Use the Share button to copy a link to your result.

About this calculator

This calculator computes the bitwise AND, OR and XOR of two integers by comparing them bit by bit in binary: AND returns a 1 only where both numbers have a 1 in that position, OR returns a 1 where either number does, and XOR (exclusive or) returns a 1 only where exactly one of the two does. These operations work on the raw binary representation of a number, not its decimal value, which is what makes them behave so differently from ordinary arithmetic.

Programmers use bitwise operations constantly for tasks like setting or checking individual flags packed into a single integer, working with permission bits, manipulating pixel colors in graphics code, and low-level performance tricks in embedded and systems programming. This calculator lets you verify the result of a bitwise expression by hand before or instead of running it in code.

Was this helpful?

Comments (0)

  • Be the first to comment.

Popular calculators

All Calculators