WebToolsPlanet
Developer Tools

XOR Calculator

Compute the bitwise XOR of two numbers and see the result in decimal, binary, hex, and octal instantly.

Last updated: May 29, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is XOR Calculator?

XOR Calculator computes the bitwise XOR (exclusive OR) — the result bit is 1 when the two corresponding input bits differ, and 0 when they are the same. XOR is widely used in cryptography, error detection (parity bits), checksum algorithms, hash functions, and toggling specific bits in registers.

How to Use XOR Calculator

1

Select input base.

2

Enter two numbers.

3

The XOR result appears in all bases.

Common Use Cases

  • Toggling specific bits in a value using a bitmask.
  • Computing parity or checksum values.
  • Implementing simple encryption with XOR cipher.
  • Swapping two integers without a temporary variable.

Example Input and Output

12 XOR 10 (decimal).

A=12, B=10
A: 12 (1100₂)
B: 10 (1010₂)
XOR result
XOR: 6 (0110₂)

Privacy

All calculations run locally in the browser.

Frequently Asked Questions

What does bitwise XOR do?
XOR (exclusive OR) outputs 1 when the input bits differ and 0 when they match. It is often described as a "difference detector" for bits.
Can XOR be used for encryption?
Yes. XOR with a key is the basis of the Vernam cipher and one-time pad. However, simple repeating-key XOR encryption is weak and easily broken — use a proper cryptographic library for security-sensitive applications.
Is my data uploaded?
No. All calculation runs in your browser.