1. Home
  2. Developer tools
  3. CRC Calculator

CRC Calculator

Pick one of 40 standard CRCs or enter the parameters of your own and get the checksum of text, hex bytes or a file.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use CRC Calculator

  1. Enter or open the data.
  2. Choose a standard CRC or custom parameters.
  3. Copy the result.

Features

  • 40 named algorithms with their usual applications
  • Custom width, polynomial, initial value, reflections and final XOR
  • Every algorithm verified against its published check value
  • Table of all results for the same data
  • Result as hex, decimal and bytes
  • Files hashed locally

Supported formats

Input

  • Any file (read in your browser)
  • Text
  • Hex bytes

You get

  • Checksum in hex and decimal

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the CRC Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • A CRC detects accidental errors only and gives no protection against deliberate changes.
  • Custom parameters must match your system exactly, including bit order and final XOR.

Guide

Calculating CRC checksums and choosing the right variant

A cyclic redundancy check, or CRC, is a short number computed from a block of data. Send the data with its CRC, recompute on arrival, and a mismatch tells you that something changed in transit. CRCs sit inside Ethernet frames, ZIP and PNG files, USB packets, Modbus messages and bootloaders. The difficulty is that “CRC-16” is not one algorithm: dozens of variants share the name. This calculator lets you pick the exact variant, or define your own.

What defines a CRC

Five numbers decide the output. The width is the number of bits in the result: 8, 16, 32 or 64. The polynomial is the divisor used in the bitwise long division that the CRC performs. The initial value is the register’s starting content. Two reflection switches say whether bytes are fed least significant bit first and whether the result is reversed at the end. A final XOR value is applied last. Change any one of them and you have a different algorithm, even if the polynomial is the same.

Checking a variant with 123456789

The industry convention for testing a CRC is to calculate it over the nine ASCII characters 123456789; the result is the algorithm’s check value. The Sample button loads that string. For CRC-32, the one used by Ethernet, ZIP, PNG and gzip, the page shows cbf43926, which is 3421780262 in decimal and the bytes cb f4 39 26. Switch to CRC-16/MODBUS and the check value is 4B37; CRC-16/CCITT-FALSE gives 29B1, CRC-16/XMODEM gives 31C3, CRC-32C (Castagnoli, used by iSCSI and ext4) gives E3069283. If your device or library produces something else for the same string, you are using a different variant or different parameters.

Choosing the algorithm

The drop-down lists each model with its common uses, such as “Modbus RTU”, “XMODEM, ZMODEM, many bootloaders”, “Ethernet, ZIP, PNG, gzip, zlib” and “xz and 7-Zip archives” for CRC-64/XZ. When a specification says only “CRC-16”, look for the polynomial, written like 0x1021 or 0x8005, and for the initial value and reflection, then match them to a named model or enter them in the custom tab. The option that lists every standard CRC for your data is the fastest way to find which one equals a value you already have.

Input formats

Data can be typed as text, pasted as hex bytes, given as Base64, or opened as a file. Text is encoded as UTF-8 before the calculation, which matters for non-ASCII characters: the CRC of é covers two bytes, not one. For frames from a protocol, use hex so you control each byte.

Limits

A CRC finds accidental errors very well, but it is not a security tool. It is linear, so anyone can change data and adjust a few bytes to restore the same CRC. For integrity against an attacker use a cryptographic hash or an HMAC. The page calculates one block at a time and does not split or reassemble protocol frames for you.

Checked against the current version of the CRC Calculator on .

Frequently asked questions

Where do I put the CRC bytes in a Modbus frame?

Modbus RTU appends the 16-bit CRC with the low byte first. The page shows the value as hex and as big-endian bytes, so swap the two bytes when you build the frame.

Can I calculate the CRC of a large file?

Yes, within the memory of the device, since the file is read whole. The checksum of a 100 MB file takes a moment on a laptop but may be slow on a phone.

Why do two CRC-16 tools give different answers?

There are dozens of CRC-16 variants. They differ in polynomial, start value, bit order and final XOR. Match the exact name, such as CRC-16/MODBUS or CRC-16/CCITT-FALSE.

Can a CRC detect tampering?

No. A CRC finds accidental errors but anyone can change data and fix up the CRC. Use a cryptographic hash or HMAC when security matters.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.