← All tools
// Number

XOR Calculator online

Bitwise XOR — Binary, Octal, Decimal, Hex & ASCII — multi-input

XOR Calculator
by
CHUNKY
MUNSTER

How to Use XOR Calculator

  1. Paste at least two values in the input box — one per line, or separated by commas, semicolons, or spaces.
  2. Set Input Base or leave on Auto Detect (handles Binary, Octal, Decimal, Hex and ASCII text).
  3. Enable Show Intermediate Results to see each step of a multi-value calculation in a table.
  4. Click Calculate XOR — results appear in all five bases simultaneously.

Bitwise XOR compares each bit position across all inputs and outputs 1 when an odd number of bits in that position are 1. For two inputs this simplifies to: 1 when the bits differ, 0 when they are equal. XOR is commutative and associative, so the order of operands doesn't matter for the final result.

Reverse XOR

XOR is its own inverse. If A ⊕ B = C, then C ⊕ B = A and C ⊕ A = B. To recover a lost operand, simply XOR the result with the other known operand. This property makes XOR fundamental to simple symmetric encryption, error-correction codes and checksums.

XOR Truth Table

A B A XOR B
000
101
011
110

XOR Use Cases

Frequently Asked Questions

What does XOR do?

XOR (exclusive OR) outputs 1 when the two input bits differ, and 0 when they are the same. For multi-input XOR, the result bit is 1 when an odd number of inputs have a 1 in that position.

How do I XOR hex values?

Set Input Base to Hex, paste your hex strings (e.g. DEAD and BEEF) and click Calculate. The result appears in hex and all other bases.

Can I XOR more than two numbers?

Yes — paste as many values as you like. The tool applies XOR successively: A⊕B, then (A⊕B)⊕C, and so on. Enable Show Intermediate Results to see each step.

How do I reverse an XOR operation?

XOR is its own inverse. If A ⊕ B = C then C ⊕ B = A. Paste the result and one operand to recover the other.

See also: NAND Calculator, NOR Calculator, NOT Calculator, Bitwise Calculator, XOR Encryptor.