Free tools & games for everyone
Free · No sign-up · No accounts
See how computers catch and fix errors: parity, Hamming codes that repair a flipped bit, CRC long division step by step, checksums and Luhn digits.
Each row and column has its own parity bit, worked out when the block was sent. Press a data bit to flip it, as noise would.
The codeword as sent. Press any bit to flip it, then read what the receiver works out.
| Tab | Move between tabs, bits and boxes |
|---|---|
| Enter or Space on a bit | Flip it |
| Enter in a box | Work it out |
Hamming (7,4) puts parity bits at positions 1, 2 and 4; each checks the positions whose binary number contains it, so the failing checks spell out the position of a single error (the syndrome). With an eighth overall parity bit (SECDED), a non-zero syndrome with the overall check passing means two errors. CRCs divide the message, followed by r zeros, by the generator polynomial in arithmetic modulo 2 and send the remainder. The standard values use CRC-8 (polynomial 0x07, start 0), CRC-16/CCITT-FALSE (0x1021, start 0xFFFF) and CRC-32 (reflected 0xEDB88320, start and final XOR 0xFFFFFFFF, as in zip and Ethernet).
The Internet checksum is the ones'-complement sum of 16-bit words (RFC 1071); Fletcher-16 and Adler-32 keep two running sums modulo 255 and 65,521. Text is turned into bytes as UTF-8. The error test uses a seeded random generator, so the same settings always give the same result. Everything runs in your browser.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product