CRC and Checksum Calculator

CRC-16, CRC-32, CRC-8, LRC, XOR and Fletcher for serial protocols, plus a finder for unknown algorithms

🔒 Your data stays in your browser: nothing you type or upload is sent to a server.

How it works

Paste the bytes of a frame in hex, or type text with escapes such as \r\n, and every CRC, LRC, sum, XOR and Fletcher algorithm is computed at once, each with its byte order on the wire. "Find the algorithm" takes a captured frame including its trailing checksum and tries every algorithm in both byte orders to tell you which one produced it.

Formula

CRC-16/MODBUS: poly 0x8005 (reflected 0xA001), init 0xFFFF, refin/refout, xorout 0x0000, check 0x4B37

Common questions

In what order does Modbus RTU send the CRC?

Low byte first. For the frame 01 03 00 00 00 0A the CRC value is 0xCDC5 and the bytes on the wire are C5 CD. Many "wrong CRC" problems are just this byte swap.

Why do CCITT-FALSE, XMODEM and KERMIT give different results with the same polynomial?

They share the polynomial 0x1021 but differ in initial value, bit order and final XOR. "CRC-CCITT" in a datasheet is ambiguous: try each one against a known frame in the find mode.

Related tools