For Students · Hamming Code
Hamming Code for a salt-and-hash
Built for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition. Simulate a salt-and-hash live below — adjust the inputs and watch it respond, right in your browser.
Hamming Error CorrectionLive
fixing a flipped bit
transmitted codeword (7 bits)
0110011
received (with your error)
0110011
no error detected
Controls
Data bits (4)
Corrupt a transmitted bit
Presets
no error
The Hamming(7,4) code adds three parity bits to four data bits so any single-bit error can be found and fixed. Each parity bit checks a different overlapping group; after transmission, recomputing them gives a syndrome whose binary value points straight at the corrupted position. Error-correcting codes like this protect RAM, deep-space links, and QR codes.
Data Inspector
Parity bits010
Syndrome0
Error atnone
Corrected?yes ✓
Governing equation
Reading this result: No bit was flipped, so all three parity checks pass and the syndrome is 0 — the receiver accepts the codeword unchanged.
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
Also for:ResearchersEducatorsEngineersHobbyists & MakersK-12 StudentsFirst RespondersGeneral version →
More with Hamming Code
Frequently asked questions
- Is this good for students?
- Yes — this version of "Hamming Code for a salt-and-hash" is framed for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition.
- Do I need to install anything?
- No. It runs in any modern browser, free, with no account required.