CRC Calculator

Calculate CRC-32, CRC-32C, CRC-16 (CCITT, XMODEM, MODBUS, ARC) and CRC-8 checksums of text or hex bytes, or work a textbook CRC by modulo-2 division of a bit string.

Built by Sabki SolutionsRules: CRC-32 check 0xCBF43926Last updated

CRC (hex)

0xCBF43926

CRC (decimal)

3,42,17,80,262

CRC (binary)

1100 1011 1111 0100 0011 1001 0010 0110

Bytes Processed

9

Parameters: width 32, poly 0x04C11DB7, init 0xFFFFFFFF, refin true, refout true, xorout 0xFFFFFFFF, check 0xCBF43926

Cyclic Redundancy Check

Use standard mode to get the checksum a real protocol or file format would produce, from text or raw hex bytes. Use textbook mode to work the modulo-2 long division taught in networking courses.

Textbook method

  • Generator G of degree r (r + 1 bits); append r zeros to the message M
  • Divide by G with XOR (no carries); the r-bit remainder is the CRC
  • Send M followed by the CRC; the receiver's remainder is 0 if no error is detected

Standard CRC parameters

AlgorithmPolyInitReflectXOR outCheck ("123456789")
CRC-3204C11DB7FFFFFFFFYesFFFFFFFFCBF43926
CRC-32C1EDC6F41FFFFFFFFYesFFFFFFFFE3069283
CRC-16/CCITT-FALSE1021FFFFNo000029B1
CRC-16/XMODEM10210000No000031C3
CRC-16/MODBUS8005FFFFYes00004B37
CRC-16/ARC80050000Yes0000BB3D
CRC-80700No00F4

Worked examples

1. CRC-32 of "123456789" (the default).0xCBF43926, the standard check value.

2. CRC-32 of "Hello, World!".0xEC4AC3D0.

3. Textbook: message 1101011011, generator 10011 (x⁴ + x + 1). Remainder 1110; transmit 11010110111110.

4. Textbook: message 100100, generator 1101. Remainder 001; transmit 100100001.

CRCs catch accidental corruption, not deliberate tampering.

Related tools

Frequently Asked Questions

What is a CRC?

A cyclic redundancy check is a short checksum computed by dividing the data, treated as a binary polynomial, by a generator polynomial modulo 2. The remainder is sent with the data so the receiver can detect corruption.

How do I calculate a CRC by hand?

Append r zeros to the message (r = degree of the generator), divide by the generator using XOR instead of subtraction, and take the r-bit remainder. 1101011011 with generator 10011 gives remainder 1110, so 11010110111110 is sent.

How does the receiver check a CRC?

It divides the received frame by the same generator. A zero remainder means no detected error.

What is the CRC-32 of 123456789?

0xCBF43926. This "check value" is used to confirm an implementation matches the standard.

Why do CRC calculators give different results?

CRC variants differ in polynomial, initial value, bit reflection and final XOR. CRC-16/MODBUS, CCITT-FALSE and XMODEM all give different values for the same data; choose the one your protocol specifies.

Which CRC does MODBUS use?

CRC-16/MODBUS: polynomial 0x8005 reflected, initial value 0xFFFF. It is sent low byte first.

Where is CRC-32 used?

Ethernet frames, ZIP and gzip files, PNG images and many file-transfer tools. CRC-32C is used by iSCSI, ext4 and Btrfs and has hardware support on modern CPUs.

What errors does a CRC detect?

An r-bit CRC detects all single-bit errors, all burst errors up to r bits long and most longer bursts; good polynomials also catch all double-bit errors in typical frame lengths.

Is a CRC secure?

No. It detects accidental errors only; anyone can change the data and recompute the CRC. Use a cryptographic hash or MAC for security.

How do I enter hex data?

Type pairs of hex digits; spaces, colons and 0x prefixes are ignored, so 31 32 33 and 0x313233 both mean the bytes 0x31, 0x32, 0x33.

Related Calculators

More in Computer Science Β· Engineering calculators Β· All calculators A–Z