Search Tools

Calculate and compare a byte sequence using a selected checksum method to check transmission errors in communicated or stored data

CRC, Adler, and Fletcher checksums detect transmission errors. Use cryptographic authentication such as HMAC to detect malicious tampering.

Text is encoded as UTF-8. Enter hexadecimal bytes as pairs of digits, such as 31 32 33; whitespace is allowed. Represent whitespace-only data in hexadecimal.

Optional. Enter a value with the 0x prefix or hexadecimal digits only. Leading zeros may be omitted.

Results

Results update automatically when the required values are entered.

Method, applicability and sources

Calculation method

Each CRC method fixes its width, polynomial, initial value, input reflection (RefIn), output reflection (RefOut), and final XOR, processing each byte as 8 bits. Adler-32 starts with A=1 and B=0; for each byte x, A=(A+x) mod 65521 and B=(B+A) mod 65521, giving (B×65536)+A. Fletcher-16 starts with A=B=0, updates similarly modulo 255, and returns (B×256)+A. Fletcher-32 converts each pair of bytes into a 16-bit word in the selected LE/BE order, appends 0x00 if the byte count is odd, accumulates modulo 65535, and returns (B×65536)+A. Results use fixed-width hexadecimal notation.

Worked example (hypothetical values)

For ASCII “123456789” (9 bytes), CRC-16/ARC=0xBB3D, CRC-16/MODBUS=0x4B37, CRC-16/IBM-3740=0x29B1, CRC-32=0xCBF43926, CRC-32C=0xE3069283, and Adler-32=0x091E01DE.

Applicability and limitations

Data with a defined byte order, supplied as a UTF-8 string or whitespace-separated hexadecimal bytes. Excludes direct file reading, arbitrary CRC polynomials, bit-level input, decoding, authentication using hashes or HMAC, and insertion of TCP pseudo-headers or checksum fields.

Method and sources

Method: pycrc CRC models / RevEng CRC Catalogue / RFC 1950 (1996) / RFC 1146 (1990; moved to Historic by RFC 6247). Data recorded: 2026-11-13.