How many bit positions differ in two equal-length strings.
| Distance | – |
Use this calculator to count differing bits between two binary strings of the same length. Enter both strings; spaces are stripped.
10110 and 10010 differ in one place, so the distance is 1. The strings must be the same length and contain only 0 and 1. This is Hamming distance, not Hamming-code error correction.
Bits A: First bit string.
Bits B: Second bit string, same length.
Distance: Number of differing positions.
Related calculators