Back to Free Tools
FREE TOOLS
Hamming (7,4) Encoder and Decoder
Encode four data bits with even parity or correct a single flipped bit in a seven-bit codeword.
Four data bits or seven encoded bits
hamming74-codec.json
Browser only
Runs locally in your browser. Your files, pasted content and generated output are not uploaded. Reset clears this tool’s working data.
This tool needs JavaScript. If it does not load, refresh the page and try again.
How to use this tool
- Enter the displayed inputs, using the example values as a starting point. JSON inputs must use the documented shape.
- Choose Calculate result, inspect the complete report and download its JSON file.
- Change inputs and run again, or Reset to restore the examples and clear working output.
Examples
Four data bits or seven encoded bits: 1011
Direction: encode
Limitations
- One codeword per run, parity positions 1/2/4. Assumes at most one flipped bit; multiple errors can be silently miscorrected.
- At most 100,000 UTF-16 units per text field and 400,000 UTF-8 bytes combined input; 4 MiB output and a 30-second local worker. Valid Unicode only. Tool-specific limits may be tighter.
- Decimal engineering calculations use finite JavaScript arithmetic. Structured record operations preserve exact JSON numeric tokens. Reports are local calculations or bounded format inspections, not a claim of external validity.
Related tools
No items found.