Skip to main content
Reviewed for accuracy by Manoj Kumar, Mathematics Educator

XOR Calculator

Calculator

Adjust values & calculate

Enter your values below. Every result is computed in your browser — no data is sent to any server.

Formula: A XOR B: output 1 when bits differ, 0 when same

Your Result

Worked example — 42 XOR 27 = 49 (0x31) | Hamming distance: 4

Reviewed for accuracy by Manoj Kumar, Mathematics Educator · Editorial policy