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: 3

Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy