A binary XOR is performed pair-wise, or bit-wise, meaning you line the two numbers up and apply XOR to each pair of bits using the following truth table. For simplicity though, the result of an XOR will be 1 if the two inputs differ from each other, 0 otherwise.