Binary Bitwise XNOR Calculator
Calculate bitwise XNOR of two binary numbers with step-by-step truth table, bit-level visualization, and decimal conversion. Supports up to 64-bit operands.
About
The XNOR (exclusive NOR) gate outputs TRUE when both inputs are identical. In digital circuit design, misidentifying XNOR as XOR inverts every bit of your result. This propagates catastrophically through adder chains, comparators, and parity checkers. The operation is formally defined as the complement of XOR: for bits A and B, the output is 1 when A = B and 0 otherwise. XNOR is also called the equivalence gate or biconditional connective (⇔) in propositional logic.
This calculator performs bitwise XNOR on operands up to 64 bits. Shorter operands are zero-padded to match the longer one. The tool displays a per-bit truth table breakdown so you can verify each stage. Note: results assume unsigned integer representation. Signed two's complement interpretation is left to the user. Pro tip: XNOR of a value with itself always yields all 1s. XNOR with all 1s is equivalent to bitwise NOT.
Formulas
The XNOR operation is defined as the logical complement of XOR. For single-bit operands:
For multi-bit operands of length n, the operation is applied bitwise. Let A = an−1...a1a0 and B = bn−1...b1b0:
Where Ri is the i-th bit of the result. The decimal value is recovered via positional notation:
Where A = first binary operand, B = second binary operand, R = result, n = bit length (after zero-padding), ⊕ = XOR operator, ¬ = NOT operator, i = bit position index (LSB = 0).
Reference Data
| A | B | A AND B | A OR B | A XOR B | A XNOR B | NOT A | A NAND B | A NOR B |
|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 |
| Common Multi-Bit XNOR Examples | ||||||||
| 1010 | 1100 | 0001 (XOR) | 1110 (XNOR) = 1410 | |||||
| 1111 | 0000 | 1111 (XOR) | 0000 (XNOR) = 010 | |||||
| 1111 | 1111 | 0000 (XOR) | 1111 (XNOR) = 1510 | |||||
| 10110011 | 11001010 | 01111001 (XOR) | 10000110 (XNOR) = 13410 | |||||
| 00000000 | 00000000 | 00000000 (XOR) | 11111111 (XNOR) = 25510 | |||||
| XNOR Algebraic Identities | ||||||||
| A XNOR A | = all 1s (identity) | |||||||
| A XNOR NOT A | = all 0s | |||||||
| A XNOR 0 | = NOT A | |||||||
| A XNOR 1...1 | = A (all ones mask) | |||||||
| Commutativity | A XNOR B = B XNOR A | |||||||
| Associativity | (A XNOR B) XNOR C = A XNOR (B XNOR C) | |||||||