XOR Calculator Online

Last Updated : 20 Mar, 2026

Online XOR Calculator is a free online tool to calculate XOR value of two integers.

Steps to use XOR Calculator

Step 1: Enter Numbers

  • Input values in:
    • First Number
    • Second Number

Step 2: Calculate XOR

  • Click the “Convert” button
    OR press Enter

Step 3: Reset the Calculator

  • Click the “Reset” button

XOR Operator

XOR is a bitwise operator, and it stands for "exclusive or." It performs logical operation. If input bits are the same, then the output will be false(0) else true(1).

XOR Gate Formula

The Exclusive OR (or XOR) relationship F = A ⊕ B is defined by the truth tables shown below:

XOR truth table

XYX^Y
000
011
101
110

How to Calculate XOR of Two Decimal numbers Online:

To find out the XOR value of two numbers we can convert it into binary representation and then do the logical XOR operation on each bit and then convert it into a decimal value .

XOR examples:

Input : A = 7 , B = 9

Output: 14

Explanation : A = 7 ( 0111 )2 , B = 9 ( 1001 )2

  • 1st bit of A = 1 and B = 1 so XOR value will be 0
  • 2nd bit of A = 1 and B = 0 so XOR Value will be 1
  • 3rd bit of A = 1 and B = 0 so XOR Value will be 1
  • 4th bit of A = 0 and B = 1 so XOR Value will be 1

XOR value has binary representation : (1110)2

Decimal value of XOR = 14

Comment