New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

CRC calculator: CRC-8, CRC-16, CRC-32 and checksums

Free CRC calculator: CRC-8, CRC-16/MODBUS, CRC-16/CCITT-FALSE, CRC-16/XMODEM and CRC-32, plus XOR, 8-bit sum and LRC, over hex bytes or text.

This CRC calculator divides your bytes by each variant’s polynomial and shows the remainder. Over the text 123456789, CRC-16/MODBUS is 4B37 and CRC-32 is CBF43926, the catalogue check values.

The default is the text 123456789, the usual check input: each algorithm’s catalogue check value is the result for it.

Over – bytes

AlgorithmHexDecimal
CRC-8––
CRC-16/MODBUS––
CRC-16/CCITT-FALSE––
CRC-16/XMODEM––
CRC-32––
XOR of all bytes––
8-bit sum––
LRC (Modbus ASCII)––

A Modbus RTU frame carries CRC-16/MODBUS low byte first: –.

How it works

How do you calculate a CRC?

A CRC divides the data by a polynomial and keeps the remainder. Each variant is defined by its width, polynomial, initial value, whether bits are reflected, and a final XOR: CRC-16/MODBUS is 8005 reflected with init FFFF; CRC-16/CCITT-FALSE 1021 with init FFFF; CRC-16/XMODEM 1021 with init 0; CRC-32 04C11DB7 reflected with init and final XOR FFFFFFFF; CRC-8 polynomial 07 with init 0.

Their check values over the text 123456789 are F4, 4B37, 29B1, 31C3 and CBF43926.

XOR combines all bytes with exclusive-or, the 8-bit sum adds them and keeps the low byte, and the LRC of Modbus ASCII is the two’s complement of that sum.

Glossary Modbus RTU, MIC (message integrity code)

Questions

Questions about the CRC calculator

Which CRC does Modbus RTU use?

CRC-16/MODBUS, sent low byte first. The Modbus RTU frame builder adds it to a request for you.

Why do two CRC-16 calculators give different results?

There are many CRC-16 variants. They differ in polynomial, initial value, bit reflection and final XOR; check the variant against its check value over 123456789.