XOR Calculator

Perform a bitwise XOR on two numbers and see the result in binary, decimal, and octal.

XOR Calculator

Our XOR Calculator applies the bitwise XOR operation to two numbers, bit by bit. Enter each number as decimal, binary, or octal, choose a bit width, and get the result in every format at once.

XOR Operation Explained

XOR: a result bit is 1 when exactly one of the two numbers has a 1 in that position; if both or neither do, the result bit is 0. Formula: A XOR B.

Truth Table

A  B  |  XOR
0  0  |   0
0  1  |   1
1  0  |   1
1  1  |   0

Example Calculation (8-bit)

A = 12 (00001100), B = 10 (00001010)

XOR: 00001100 ^ 00001010 = 00000110 = 6

Features of Our XOR Calculator

✅ Accepts decimal, binary, or octal input
✅ Choose 4, 8, 12, or 16-bit representation
✅ Computes the bitwise XOR of two numbers
✅ Shows signed and unsigned decimal, binary, and octal results

Who Can Use This Calculator?

Programmers – For debugging flags, masks, and bitwise logic
Students – For digital logic and computer science coursework
Network & Systems Engineers – For subnet masks and permission flags
Puzzle Solvers – For quick binary logic checks

👉 Try our XOR Calculator to perform bitwise XOR on any two numbers instantly.