Skip to content
AESTECHNO
AESTECHNO
Contact
CRC-32 · 0x04C11DB7

CRC Calculator: CRC-8, CRC-16, CRC-32 and CRC-64

A CRC (cyclic redundancy check) is the remainder of dividing the data by a generator polynomial, used to detect transmission errors. This calculator gives the CRC of text or hex bytes for 20 algorithms from the RevEng catalogue: CRC-8, CRC-16 (Modbus, XMODEM, CCITT, KERMIT, USB), CRC-32, CRC-32C and CRC-64, or for your own parameters. The default data, "123456789", returns each algorithm's published check value.

Inputs
Input as

In hex, spaces, commas, colons and 0x prefixes are accepted: 01 04 02 FF FF. The default "123456789" gives each algorithm's published check value.

Reflect input bytes (refin)
Reflect result (refout)
Result

0xCBF43926

Formula with your values

width=32 poly=0x04c11db7 init=0xffffffff refin=true refout=true xorout=0xffffffff

Breakdown

CRC-32/ISO-HDLC, CRC-32, PKZIP, CRC-32/V-42

Decimal 3421780262
Bytes, most significant first CB F4 39 26
Bytes, least significant first 26 39 F4 CB
Check value ("123456789") 0xCBF43926 = RevEng catalogue
Input 9 bytes

You receive the result with its direct link. Our design house gets a copy and can react to it, simply reply if you want an engineer's eye on it.

Bit-by-bit CRC, any width from 1 to 64 bits. Presets and check values come from the RevEng CRC catalogue. Text is encoded as UTF-8, so accented characters count as two bytes. Byte order on the wire is set by the protocol, not by the CRC.

TOOL // CRC

A mis-set CRC passes on the bench and rejects frames in the field. We design the communication protocols and firmware of your products, from the frame format to the driver. Let's talk it through in a free 30-minute audit.

The six parameters that define a CRC

A CRC algorithm is described by six values: the width (8, 16, 32 bits...), the polynomial in normal form (the implicit top bit is left out), the register's initial value, input byte reflection (refin), output reflection (refout) and the final XOR (xorout). Two CRCs with the same polynomial but a different initial value or reflection give different results.

The calculator processes the data bit by bit, most significant bit first, which works for every width from 1 to 64 bits. In custom mode, enter the six parameters from your documentation and check the value on "123456789".

Common CRC algorithms and check values

Parameters from the RevEng catalogue. The check value is the CRC of the ASCII string "123456789". In all of these algorithms, refin and refout are equal.

Parameters and check values (RevEng catalogue)
AlgorithmBitsPolynomialInitReflectedFinal XORCheck
CRC-8/SMBUS80x070x00no0x000xF4
CRC-8/MAXIM-DOW80x310x00yes0x000xA1
CRC-8/AUTOSAR80x2F0xFFno0xFF0xDF
CRC-8/SAE-J185080x1D0xFFno0xFF0x4B
CRC-16/ARC160x80050x0000yes0x00000xBB3D
CRC-16/IBM-3740160x10210xFFFFno0x00000x29B1
CRC-16/KERMIT160x10210x0000yes0x00000x2189
CRC-16/XMODEM160x10210x0000no0x00000x31C3
CRC-16/MODBUS160x80050xFFFFyes0x00000x4B37
CRC-16/USB160x80050xFFFFyes0xFFFF0xB4C8
CRC-16/IBM-SDLC160x10210xFFFFyes0xFFFF0x906E
CRC-16/MCRF4XX160x10210xFFFFyes0x00000x6F91
CRC-32/ISO-HDLC320x04C11DB70xFFFFFFFFyes0xFFFFFFFF0xCBF43926
CRC-32/ISCSI320x1EDC6F410xFFFFFFFFyes0xFFFFFFFF0xE3069283
CRC-32/MPEG-2320x04C11DB70xFFFFFFFFno0x000000000x0376E6E7
CRC-32/BZIP2320x04C11DB70xFFFFFFFFno0xFFFFFFFF0xFC891918
CRC-32/JAMCRC320x04C11DB70xFFFFFFFFyes0x000000000x340BC6D9
CRC-32/AUTOSAR320xF4ACFB130xFFFFFFFFyes0xFFFFFFFF0x1697D06A
CRC-64/ECMA-182640x42F0E1EBA9EA36930x0000000000000000no0x00000000000000000x6C40DF5F0B497347
CRC-64/XZ640x42F0E1EBA9EA36930xFFFFFFFFFFFFFFFFyes0xFFFFFFFFFFFFFFFF0x995DC9BBDF1939FA

CRC byte order in the frame

The calculation gives a number; the protocol decides the order of its bytes on the wire. Modbus RTU sends the CRC low byte first: for a CRC of 0x80B8, the frame ends in B8 80. The calculator shows both orders for widths of 16 bits and more, to compare against a logic analyser capture.

Frequently asked questions

FAQ

What is a CRC?
A cyclic redundancy check: the data is treated as a binary polynomial and divided by a generator polynomial, and the remainder is the CRC. The sender appends it to the message, the receiver repeats the calculation and compares. A CRC is very good at catching accidental errors (flipped bits, bursts) but does not protect against deliberate changes: it is not a cryptographic signature.
Which algorithm is the standard CRC-32?
CRC-32/ISO-HDLC, also listed as CRC-32 or PKZIP in the RevEng catalogue: polynomial 0x04C11DB7, initial value and final XOR 0xFFFFFFFF, reflected input and output. Its check value on "123456789" is 0xCBF43926. CRC-32C (CRC-32/ISCSI, Castagnoli, used by NVMe) is a different algorithm with polynomial 0x1EDC6F41, and gives 0xE3069283.
Why doesn't my CRC-16 match?
Because there are many CRC-16s. Polynomial 0x1021 alone gives at least four: CRC-16/IBM-3740 (known as CCITT-FALSE, initial value 0xFFFF) gives 0x29B1, CRC-16/KERMIT (the reflected CRC-CCITT) 0x2189, CRC-16/XMODEM 0x31C3 and CRC-16/IBM-SDLC (X-25) 0x906E. Run "123456789" in All algorithms mode and look for the value in your documentation.
How do I calculate the Modbus RTU CRC?
With CRC-16/MODBUS: polynomial 0x8005 (0xA001 in reflected form), initial value 0xFFFF, reflected input and output, no final XOR. The CRC covers the address, function code and data. For the frame 01 04 02 FF FF the CRC is 0x80B8, and it is sent low byte first: the full frame is 01 04 02 FF FF B8 80.
What do refin, refout and xorout mean?
They are parameters of the model the RevEng catalogue uses. refin reverses the bit order of each input byte (serial links send the least significant bit first), refout reverses the final register, and xorout is XORed into the result. Together with the width, polynomial and initial value, these six parameters fully define an algorithm.
What is the "123456789" check value for?
It is the CRC of the ASCII string "123456789" (nine bytes, 0x31 to 0x39), published for every algorithm in the catalogue. Use it to test an implementation: if your code does not return that value, a parameter is wrong, most often the reflection or the initial value. The calculator shows it for the chosen algorithm, custom parameters included.
Go further

An electronics design house based in Montpellier, France, AESTECHNO brings 10+ years of design experience and a 100% success rate on CE/FCC certifications, across dozens of campaigns run over more than 10 years of practice. Parameters and check values follow the RevEng CRC catalogue.