XOR Calculator

Calculate bitwise XOR for two fixed-width words and see the result in binary, hex, signed decimal, and unsigned decimal.

Result
—

How to calculate

Set a result bit when the two corresponding operand bits differ. Each operand is wrapped to the selected word width before evaluating.

Worked example

Use First operand A5 · Second operand 3C · Operand base Hexadecimal · Word width 8 bits. The result is 10011001.

Input and result notes

Enter the numbers without a base prefix. A leading minus sign is allowed and is wrapped to the selected width.

MIT two’s complement and bitwise shifts

Related calculators