XOR Calculator

Compute bitwise XOR of two numbers and see the result in binary, decimal and hex. Free, private and instant: everything runs in your browser.

Numbers
XOR result
Result appears here as you type

What does the XOR Calculator do?

Bitwise XOR compares two numbers bit by bit and returns 1 where the bits are different. For example 12 XOR 10 = 6. Enter two integers in decimal, hex or binary and the calculator lines up every bit and shows the result in all common bases. It is commonly used for toggling bits, checksums and simple ciphers.

How to use the XOR Calculator

  1. 1

    Enter your values

    Fill in number a and number b at the top of the XOR Calculator.

  2. 2

    Choose the options

    Pick bit width, input format.

  3. 3

    Read the result

    The result updates instantly as you type. Copy it or download it as a text file.

When to use it

  • •Toggling bits, checksums and simple ciphers
  • •Verifying hand-calculated truth tables
  • •Debugging low-level code that manipulates bits

Why use this xor calculator

  • 100% free, no signup or login
  • Runs locally: your data never leaves the browser
  • Instant results with clear error messages
  • Works on desktop, tablet and mobile
  • Copy to clipboard or download in one click
  • No watermarks and no usage limits

Frequently asked questions

What is the truth table for XOR?+

0 XOR 0 = 0, 0 XOR 1 = 1, 1 XOR 0 = 1, 1 XOR 1 = 0.

Is the XOR Calculator free?+

Yes. The XOR Calculator is 100% free with no signup, no login, no usage limits and no watermark. It works on desktop and mobile browsers.

Is my data uploaded when I use the XOR Calculator?+

No. The XOR Calculator runs entirely in your browser with JavaScript. Nothing you paste or upload is sent to our servers, logged or stored.

Last updated by the Imaginex AI team.