Math

XOR Calculator

Compute the bitwise exclusive OR of two integers.

Parameters Live Compute
Calculated Output
Result (decimal) 6
Result (binary) 110
Formula: result bit = 1 if the bits differ
Step-by-Step Breakdown
1. Values used:
2. a (decimal) = 12
3. b (decimal) = 10
4.
5. Result (decimal) = 6
6. Result (binary) = 110
Did this calculator solve your problem today?
Report issue to loopingon.com
Sponsored

Bitwise XOR sets a 1 wherever the two inputs differ.

The math behind it

Each output bit is 1 only when the two input bits are different (one 0 and one 1).

Worked Example

12 (1100) XOR 10 (1010) = 6 (0110).

Frequently Asked Questions

Why is XOR special?

Applying the same XOR twice restores the original value — the basis of simple ciphers and checksums.

Advertisement