CRC Calculator

CRC-8, CRC-16, CRC-32 and CRC-64 from text or hex bytes.

CRC calculator: the quick answer

Enter your bytes, choose the exact CRC model, and compare the hexadecimal checksum. This online CRC calculator accepts UTF-8 text or raw hex bytes. The default comparison shows CRC-8/SMBUS, CRC-16/ARC and CRC-32/ISO-HDLC; Compute all runs all 14 named models.

For ASCII 123456789 with no newline, standard CRC-32/ISO-HDLC is CBF43926. A different model can give a different answer for identical data. The RevEng catalogue supplies the parameters and check values used below.

How to use this CRC tool

  1. Choose Text (UTF-8) for characters or Hex bytes for a packet dump. Text 12 means bytes 31 32; hex 12 means one byte.
  2. Select your named model, or choose Customize model to start with its parameters. From the default comparison, customization starts with CRC-32/ISO-HDLC.
  3. Read the zero-padded hex and exact unsigned decimal output. Use Compute all to compare all named models at once.
  4. Copy a single hex checksum, copy the results table, or download the results with the input format. To checksum zero bytes, select the empty-sequence checkbox.

For example, UTF-8 Hello gives CRC-8 F6, CRC-16/ARC F353 and CRC-32/ISO-HDLC F7D18982. Spaces and line breaks count as bytes.

Why the same data gives different CRCs

A CRC name describes a full parameter set, not just a bit width. CRC-16/XMODEM, KERMIT and CCITT-FALSE share polynomial 1021, but differ in initialization or reflection. Their check values are 31C3, 2189 and 29B1.

Width
The number of register bits and output bits. CRC-64 needs all 64 bits for an exact result.
Poly
The generator polynomial in normal hexadecimal notation, omitting the leading xⁿ term. CRC-32 uses 04C11DB7; its reflected implementation constant EDB88320 is a different representation. Enter the normal form here.
Init
The register value before processing the first input bit.
Refin
Whether to process each byte least-significant bit first instead of most-significant bit first. It does not reverse the order of the input bytes.
Refout
Whether to reflect the final register, relative to its normal orientation, before applying xorout.
Xorout
The final bitwise XOR applied to the register. It is part of the model, not an extra step to apply to the displayed result.

CCITT naming: this tool labels init=FFFF, unreflected CRC-16 as CCITT-FALSE (IBM-3740). KERMIT is a separate reflected model. A datasheet saying only “CCITT” needs more detail.

CRC check value table

All rows use the same nine ASCII bytes: 31 32 33 34 35 36 37 38 39 (“123456789”), with no newline. Poly, init, xorout and check are hexadecimal. ✓ means the computed value matches the catalogue.

Parameter source: RevEng CRC catalogue · Download parameters, checks and worked steps (JSON)

ModelWidthPolyInitRefin / RefoutXoroutCheckMatches catalogue
CRC-8/SMBUS80700false / false00F4✓
CRC-8/MAXIM-DOW83100true / true00A1✓
CRC-16/ARC1680050000true / true0000BB3D✓
CRC-16/CCITT-FALSE (IBM-3740)161021FFFFfalse / false000029B1✓
CRC-16/XMODEM1610210000false / false000031C3✓
CRC-16/KERMIT1610210000true / true00002189✓
CRC-16/MODBUS168005FFFFtrue / true00004B37✓
CRC-32/ISO-HDLC3204C11DB7FFFFFFFFtrue / trueFFFFFFFFCBF43926✓
CRC-32C (ISCSI)321EDC6F41FFFFFFFFtrue / trueFFFFFFFFE3069283✓
CRC-32/BZIP23204C11DB7FFFFFFFFfalse / falseFFFFFFFFFC891918✓
CRC-32/MPEG-23204C11DB7FFFFFFFFfalse / false000000000376E6E7✓
CRC-64/ECMA-1826442F0E1EBA9EA36930000000000000000false / false00000000000000006C40DF5F0B497347✓
CRC-64/XZ6442F0E1EBA9EA3693FFFFFFFFFFFFFFFFtrue / trueFFFFFFFFFFFFFFFF995DC9BBDF1939FA✓
CRC-24/OPENPGP24864CFBB704CEfalse / false00000021CF02✓

Scroll inside the table on a small screen. This is a model check table; a 256-entry implementation lookup table depends on the selected polynomial and bit orientation.

CRC-8 worked bit-by-bit: two bytes, “12”

Use CRC-8/SMBUS: width 8, poly 07, init 00, no reflection, xorout 00. The text “12” is two bytes, 31 32. Start at 00 and XOR in 31. For each of eight shifts, keep the low eight bits; XOR with 07 only when the old top bit was 1.

After byte 1 the register is 97. XOR byte 2 into it: 97 XOR 32 = A5. Repeat the eight shifts below.

Register after each bit step; each byte’s first row starts after its byte XOR. Final CRC: 72 hex (114 decimal).

ByteStepBeforeOld top bitShift & maskXORAfter
1 (31)1310620062
1 (31)2620C400C4
1 (31)3C4188078F
1 (31)48F11E0719
1 (31)5190320032
1 (31)6320640064
1 (31)7640C800C8
1 (31)8C81900797
2 (32)1A514A074D
2 (32)24D09A009A
2 (32)39A1340733
2 (32)4330660066
2 (32)5660CC00CC
2 (32)6CC198079F
2 (32)79F13E0739
2 (32)8390720072

No final reflection or XOR changes this result. Enter 12 in text mode or 31 32 in hex mode and choose CRC-8/SMBUS to reproduce 72.

How to match a CRC from a device or datasheet

  1. Collect all six parameters. Match width, normal polynomial, init, refin, refout and xorout. Do not infer the full model from “CRC-16” or “CRC-32” alone.
  2. Validate the model first. Run ASCII 123456789 and compare the documented check value. This isolates parameter errors from packet-format errors.
  3. Identify the covered bytes. Confirm whether address, length, command, payload and padding are included. Follow the device’s rule for excluding or including an existing checksum field.
  4. Use the actual byte stream. Paste a hex dump when the data is binary. Check for added spaces, a byte-order mark, null terminators, LF versus CRLF, or an unexpected text encoding.
  5. Check the transmitted CRC order. A displayed MODBUS value 4B37 may appear as bytes 37 4B on the wire. Swapping output bytes is separate from reflecting bits.
  6. Verify more than one packet. One matching short checksum can be a coincidence. If the check string matches but real packets fail, recheck byte coverage, padding and any protocol-specific preprocessing.

Use this CRC checker to recompute a known model and compare results. A match alone does not identify an unknown model or prove that data is authentic.

CRC calculator FAQ

What is CRC?

CRC stands for cyclic redundancy check. It computes a fixed-width remainder from input bytes using polynomial arithmetic over bits. A receiver can recompute the same CRC to detect accidental changes in data.

Why does my CRC not match?

Compare the exact input bytes and all six model parameters: width, polynomial, init, refin, refout and xorout. Check text encoding, line endings, covered packet fields and whether the transmitted CRC bytes are in a different order. First test ASCII 123456789 against the model’s check value.

What is the CRC-32 of 123456789?

CRC-32/ISO-HDLC of the nine ASCII bytes 123456789 is CBF43926 in hexadecimal, or 3421780262 in unsigned decimal. There is no trailing newline. CRC-32C (ISCSI) uses a different polynomial and gives E3069283 for the same bytes.

Is CRC a hash?

A CRC is a checksum and can be viewed as a non-cryptographic hash. It is designed to detect accidental corruption, not deliberate tampering. Use a cryptographic hash such as SHA-256 for cryptographic fingerprinting, and an HMAC or digital signature when authenticity matters.