Hamming(7,4) — Error Correction

The Hamming(7,4) code encodes 4 data bits into 7 bits using 3 parity bits. It can detect up to 2 errors and correct any single-bit error. Click the codeword bits to flip them and watch the syndrome-based correction.

1. Input: 4 data bits (click to toggle)
2. Encoded codeword (7 bits) — positions p1,p2,d1,p4,d2,d3,d4
3. Introduce errors (click codeword bits above), then detect & correct
Enter data bits above.