Calculate Binary Bitwise XNOR
Enter two binary bit strings to compare each aligned bit. The shorter value is padded on the left with zeroes, and the result keeps the resulting width.
A QUICK WALKTHROUGH
How to use this tool
- Enter non-empty strings containing only 0 and 1.
- Use up to 10,000 bits per value; the shorter value is left-padded with zeroes.
- Calculate to see 1 where aligned bits match and 0 where they differ.
Defined output width
The output width is the longer input width. Before comparison, the shorter input is explicitly left-padded with zeroes, so leading positions are included in the result.
Local validation and calculation
Inputs must be non-empty bit strings of no more than 10,000 bits. Validation and XNOR calculation run in the browser; inputs are not uploaded or stored.
GOOD TO KNOW
Common questions
What does XNOR do?
It returns 1 when the aligned input bits are equal and 0 when they differ.
How are different-length inputs handled?
The shorter input is left-padded with zeroes to the longer input width before comparison.
Can I use spaces or 0b prefixes?
No. Enter only 0 and 1 characters in each non-empty input.