XOR Calculator

Calculate exclusive OR for binary, decimal, or hex values with fixed-width masking and per-bit inspection.

Last updated: March 2026 | By Workshelve Team

Exclusive OR

Bitwise Workspace

A decimal: 170
B decimal: 85
XOR decimal: 255
XOR binary: 1111 1111
XOR hex: 0xFF
BitABXOR
7101
6011
5101
4011
3101
2011
1101
0011

Truth Rule

XOR returns 1 when the two input bits are different and 0 when they match.

Masked Output

The selected width limits the result to the low 4, 8, 16, 32, or 64 bits.

Common Uses

Use XOR for bit toggles, parity checks, simple masks, checksums, and low-level debugging.

XOR Truth Table

ABResultMeaning000same011different101different110same

Tips

Switch to binary input when you want exact bit control, or keep decimal input when checking values from logs and API payloads.

Related Tools