Tool to compute and verify CRC-24 checksums, validating data integrity, detecting transmission corruption, and ensuring the reliability of exchanged data streams.
CRC-24 - 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-24 (24-bit Cyclic Redundancy Check) is an integrity-checking mechanism that associates a 24-bit value with a set of data. This value, known as a checksum, is calculated from the message and helps identify certain storage or transmission errors. CRC-24 produces a 3-byte checksum, usually six hexadecimal digits. Several algorithms exist, for OpenPGP, FlexRay and certain mobile telecommunications technologies.
CRC-24 calculation relies on binary polynomial arithmetic. Each bit sequence is interpreted as a polynomial whose coefficients are 0 or 1.
Example: The binary sequence 1101 represents the polynomial $ x^3 + x^2 + x^0 $, with bits set to 1 indicating the powers present.
The message is divided, modulo 2, by a generator polynomial of degree 24; additions and subtractions are replaced by XOR (exclusive OR) operations. Following this division, the quotient is discarded and only the remainder is kept, a polynomial of degree less than 24, encoded as 24 bits, which serves as the checksum.
The polynomial alone is not sufficient: the initial value, optional input/output reflection and final XOR also determine the result. Two implementations with different parameters may produce different checksums for the same message.
CRC-24 detects accidental data corruption with a 3-byte checksum, between CRC-16 and CRC-32. Its 24 bits provide 16,777,216 possible values. OpenPGP uses it for ASCII Armor; other variants serve FlexRay or telecommunications. It suits protocols that explicitly specify this check; the variant must match the data format and system requirements.
CRC-24 does not encrypt data and does not provide cryptographic protection against forgery. It detects certain accidental errors but neither prevents nor corrects them. With its 24 bits, i.e. 16,777,216 possible values, multiple messages can share the same checksum; for uniformly distributed results, the collision probability between two independent results is 1 in $ 2^{24} $. To guarantee authenticity or protect against intentional modification, use an appropriate cryptographic mechanism.
A CRC-24 checksum is usually displayed as six hexadecimal digits (24 bits, 3 bytes), between 0x000000 and 0xFFFFFF, or 0 to 16,777,215 in decimal. It can also be displayed as a 24-bit binary value or stored in a 32-bit integer, with the upper 8 bits left unused.
In OpenPGP, it may appear as four Base64 characters preceded by an = sign in the ASCII Armor block; this form encodes the three CRC bytes.
Length alone cannot identify a CRC-24: check the context, message format and calculation parameters, then compare with a reference value.
There is no universal CRC-24 variant: the choice depends on the protocol or application. CRC-24/OPENPGP is the best known, notably for ASCII Armor. CRC-24/FLEXRAY-A and CRC-24/FLEXRAY-B illustrate automotive uses, with distinct parameters. The full variant name and parameters must be checked before comparison.
Several parameters characterize a CRC-24 algorithm: generator polynomial, initial value, input/output reflection and final XOR. Some catalogued variants:
— CRC-24/OPENPGP: polynomial 864CFB, initial value 0xB704CE, no reflection, final XOR 0x000000; used by the OpenPGP format.
— CRC-24/FLEXRAY-A: polynomial 5D6DCB, initial value 0xFEDCBA, no reflection, final XOR 0x000000; used on FlexRay channel A.
— CRC-24/FLEXRAY-B: polynomial 5D6DCB, initial value 0xABCDEF, no reflection, final XOR 0x000000; used on FlexRay channel B.
— CRC-24/BLE: polynomial 00065B, initial value 0x555555, input/output reflection, final XOR 0x000000; associated with Bluetooth Low Energy communications.
— CRC-24/LTE-A: polynomial 864CFB, initial value 0x000000, no reflection, final XOR 0x000000; used in LTE systems.
— CRC-24/LTE-B: polynomial 800063, initial value 0x000000, no reflection, final XOR 0x000000; another variant specified for LTE.
These variants are not interchangeable. Even with an identical polynomial, different initial values or other parameters may produce different results for the same sequence. To reproduce a checksum, use the exact parameters specified by the protocol.
dCode retains ownership of the "CRC-24" source code. Any algorithm for the "CRC-24" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "CRC-24" 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-24" 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-24" 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-24 on dCode.fr [online website], retrieved on 2026-11-24,