Tool for checking data-stream integrity or generating a checksum CRC-8, detecting transfer-related corruption and confirming the reliability of exchanged information.
CRC-8 - dCode
Tag(s) : Checksum
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
CRC-8 (8-bit Cyclic Redundancy Check) checks data integrity. An algorithm calculates an 8-bit check value from a binary data sequence. This fingerprint, or checksum, detects certain accidental errors during storage, processing or transmission. Its small size suits short messages and embedded systems.
CRC-8 relies on binary polynomial division: the data forms a polynomial whose coefficients are bits.
Example: The binary code 1101 corresponds to the polynomial $ 1 \times x^3 + 1 \times x^2 + 0 \times x^1 + 1 \times x^0 = x^3 + x^2 + x^0 $ (starting with power 0 on the right, each bit indicates the presence or not of a term).
A predefined generator polynomial of degree 8 serves as the divisor. Its usual hexadecimal representation stores only the coefficients below the $ x^8 $ term, which is implicit.
Example: For example, 07 corresponds to $ x^8 + x^2 + x^1 + x^0 $. Other variants use other polynomials.
Modulo-2 division replaces additions and subtractions with XOR (exclusive OR) operations. The 8-bit remainder constitutes the CRC-8 checksum.
The polynomial alone is not enough to identify a variant: initial value, input/output reflection and final XOR change the result.
CRC-8 produces a one-byte checksum, with little storage and transmission overhead. It suits short messages, sensors, microcontrollers and communications between electronic components. The calculation can be performed efficiently in software or with suitable hardware instructions.
CRC-8 detects certain accidental data alterations, without preventing or correcting errors. Its effectiveness depends on the selected polynomial, data length and types of errors to be detected. It is used in certain sensor/peripheral communications and in protocols such as SMBus.
CRC-8 is not a cryptographic hash function and does not protect against malicious modifications. With only 256 possible values, multiple data sequences can share the same checksum; for uniformly distributed results, the probability of coincidence between two independent results is 1 in 256. CRC-8 must remain reserved for error detection and must not be used alone to guarantee data authenticity or security.
A CRC-8 checksum is usually displayed as two hexadecimal digits (8 bits, one byte), between 0 and 255 (0x00 to 0xFF), or as an 8-bit binary value / decimal integer.
Two hexadecimal digits are not enough to confirm a CRC-8: other calculations can produce values of the same size, and different variants can produce different results for the same data. To identify a variant, compare with known parameters and, if possible, with a reference data sequence and its expected checksum.
CRC-8 refers to a family of variants, not a single algorithm. There is no universal "default CRC-8": the choice depends on the protocol or hardware. The most cited variants are CRC-8/SMBUS and CRC-8/MAXIM-DOW. The exact name and parameters of the variant used must be checked before any comparison.
CRC-8 variants differ in generator polynomial, initial value, optional input/output bit reflection or even by the final XOR. Some common variants:
— CRC-8/SMBUS: polynomial 07, initial value 0x00, no reflection, final XOR 0x00; error checking in SMBus.
— CRC-8/MAXIM-DOW: polynomial 31, initial value 0x00, input/output reflection, final XOR 0x00; certain Maxim/Dallas Semiconductor communications and devices.
— CRC-8/SAE-J1850: polynomial 1D, initial value 0xFF, no reflection, final XOR 0xFF; automotive applications.
— CRC-8/ROHC: polynomial 07, initial value 0xFF, input/output reflection, final XOR 0x00; packet header compression.
— CRC-8/I-CODE: polynomial 1D, initial value 0xFD, no reflection, final XOR 0x00; certain radio-frequency identification systems.
CRC-8 variants are not necessarily compatible with each other and can produce different checksums for the same data. For a protocol-compatible result, respect all of its parameters.
dCode retains ownership of the "CRC-8" source code. Any algorithm for the "CRC-8" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "CRC-8" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "CRC-8" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "CRC-8" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: CRC-8 on dCode.fr [online website], retrieved on 2026-11-24,