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

Modbus CRC calculator and RTU frame builder

Free Modbus CRC calculator: build a Modbus RTU request with its CRC-16 in the right byte order, or check the CRC of a captured frame, in your browser.

This Modbus CRC calculator uses CRC-16/MODBUS (start FFFF, reflected polynomial A001) and sends it low byte first: the request 01 03 00 00 00 0A gets the CRC CDC5, so the frame ends in C5 CD.

The address in the frame. A manual’s register 40001 is address 0.

Up to 125 registers or 2,000 coils.

Check a frame

Paste a captured frame; the last two bytes are taken as its CRC.

Request frame
–
CRC (low byte first)
–
Length
– bytes

How it works

How is the Modbus RTU CRC calculated?

A request is the unit ID, the function code, the start address and the quantity or values, each address and value as two bytes, high byte first. Write-multiple functions add a byte count before the data; coils are packed eight to a byte, the first coil in the lowest bit.

The CRC is CRC-16/MODBUS: start at FFFF, and for each byte XOR it in and shift right eight times, XORing A001 whenever a 1 falls out. It is sent low byte first: the CRC of 01 03 00 00 00 0A is CDC5, sent as C5 CD.

Over Modbus TCP the same request travels without the CRC, inside a 7-byte header.

In Hermetry Hermetry Edge reads Modbus RTU over RS485 and Modbus TCP on licensed gateways, depending on the model: Licensed gateways and Hermetry Edge.

Glossary Modbus RTU, RS-485, Modbus register

Questions

Questions about the Modbus CRC calculator

Are Modbus addresses 0-based or 1-based?

The frame carries a 0-based address. Many manuals number holding registers from 40001; register 40001 is address 0 in the frame and 40010 is address 9.

In which order is the CRC sent?

Low byte first. The CRC of 01 03 00 00 00 0A is CDC5, so the frame ends in C5 CD.

What is the difference between Modbus RTU and Modbus TCP?

RTU runs over serial lines such as RS-485 and ends each frame with a CRC. Modbus TCP sends the same request inside a 7-byte header over a network and leaves error checking to TCP.