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.
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
| Algorithm | Poly | Init | Reflect | XOR out | Check ("123456789") |
|---|---|---|---|---|---|
| CRC-32 | 04C11DB7 | FFFFFFFF | Yes | FFFFFFFF | CBF43926 |
| CRC-32C | 1EDC6F41 | FFFFFFFF | Yes | FFFFFFFF | E3069283 |
| CRC-16/CCITT-FALSE | 1021 | FFFF | No | 0000 | 29B1 |
| CRC-16/XMODEM | 1021 | 0000 | No | 0000 | 31C3 |
| CRC-16/MODBUS | 8005 | FFFF | Yes | 0000 | 4B37 |
| CRC-16/ARC | 8005 | 0000 | Yes | 0000 | BB3D |
| CRC-8 | 07 | 00 | No | 00 | F4 |
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
- Error-correcting codes: Hamming Distance Calculator. Bits and hex: Binary Calculator. Bytes of text: Encoding Calculator.
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
Hamming Distance Calculator
Calculate the Hamming distance between two binary values. Determine the number of differing bit positions and error detection capability.
Binary Calculator
Convert between decimal, binary, octal, and hexadecimal number systems. Perform bitwise AND, OR, XOR, NOT, and shift operations.
Encoding Calculator
Calculate string encoding sizes, byte representations, and storage requirements for different character encodings.
Boolean Algebra Calculator
Evaluate Boolean logic gates (AND, OR, XOR, NAND, NOR) for up to 3 inputs. View truth table outputs and minterm expressions.
Bandwidth Calculator
Calculate network bandwidth required to transfer a file of given size in a specified time. Convert between bps, Kbps, Mbps, and Gbps.
Storage Calculator
Convert between storage units (Bytes, KB, MB, GB, TB, PB) and calculate RAID usable capacity for different configurations.
More in Computer Science Β· Engineering calculators Β· All calculators AβZ