Hamming Code Calculator (Encode & Correct Errors)
Encode data bits with a Hamming code, or decode a received code word — find the syndrome and correct a single-bit error.
Encode data bits with a Hamming code, or decode a received code word — find the syndrome and correct a single-bit error.
Results
Enter your details and click Calculate to see your results.
About This Calculator
Parity bits sit at positions 1, 2, 4, 8…; each checks the positions with that bit set in their index. The syndrome of a received word is the position of a single flipped bit.
Example
Example: data 1011 encodes to 0110011 (Hamming(7,4)).
Assumptions
Even parity, single-error correction.
Frequently Asked Questions
How many parity bits does Hamming(7,4) use?
Three, protecting four data bits.
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile