CRC-16 Calculator

Calculate CRC-16 checksums for text, hex bytes or files. Pick any of 26 catalogued variants or define your own polynomial, and compare every variant side by side. Runs locally in your browser.

CRC-16 (hex): —
Decimal: —
Binary: —
Bytes, low byte first (Modbus): —
Bytes: —

PARAMETERS

Check ("123456789"): —

ALL VARIANTS

Click a variant to select it. Every CRC-16 below is computed from the current input.

[01]

26 Standard Variants

Modbus, ARC, CCITT-FALSE, XMODEM, KERMIT, X-25, USB, DNP, GENIBUS and more. Each one reproduces its published check value for the string "123456789".

[02]

Custom Parameters

Edit the polynomial, initial value, input and output reflection and final XOR. Selecting a preset fills the fields, editing any field switches to custom.

[03]

Side-by-Side Comparison

See the CRC-16 of your input under every variant at once, in hex, with the Modbus-style low-byte-first order shown separately.

>> technical info

How CRC-16 Works:

CRC-16 treats the message as a long binary polynomial and divides it by a 16-bit generator polynomial; the remainder is the checksum. Variants differ in the polynomial (for example 0x8005 or 0x1021), the initial register value, whether input bytes and the final result are bit-reflected, and a final XOR. Following the Rocksoft model, this tool processes data bit by bit, so every variant matches its catalogue check value.

Example:

CRC-16/MODBUS input = "123456789" (ASCII) poly = 0x8005, init = 0xFFFF, refin = true, refout = true, xorout = 0x0000 crc = 0x4B37 (on the wire, low byte first: 37 4B)

Why Use This CRC-16 Calculator:

  • >Verify Modbus RTU, XMODEM or X-25 frames while debugging a serial protocol
  • >Find which CRC-16 variant a device or file format actually uses
  • >Generate the two CRC bytes to append to a frame, in the correct byte order
  • >Test custom polynomials without writing code

>> frequently asked questions

Q: What is CRC-16 and where is it used?

A: CRC-16 is a 16-bit cyclic redundancy check that detects accidental changes in data. It is used in Modbus RTU, XMODEM and YMODEM file transfers, HDLC and PPP (X-25), USB token packets, Bluetooth, DNP3, SD cards, RFID and many embedded protocols.

Q: Which CRC-16 variant should I choose?

A: Use the one your protocol specifies. Modbus RTU uses CRC-16/MODBUS, XMODEM and many bootloaders use CRC-16/XMODEM, "CRC-CCITT" usually means CRC-16/IBM-3740 (CCITT-FALSE) or CRC-16/KERMIT, and HDLC/PPP use CRC-16/IBM-SDLC (X-25). When unsure, compare all variants against a known sample.

Q: Why does my result differ from another tool?

A: The usual reasons are a different variant (init, reflection or final XOR), text being hashed instead of hex bytes, a different text encoding (this tool uses UTF-8), or a different byte order when the 16-bit result is written out. Check the input type and compare against the "123456789" check value.

Q: In which byte order is the CRC appended to a frame?

A: It depends on the protocol. Modbus RTU sends the low byte first (CRC 0x4B37 becomes 37 4B on the wire), while XMODEM and most CCITT-style protocols send the high byte first. The output panel shows both the hex value and the low-byte-first form.

Q: Is CRC-16 secure like a hash?

A: No. A CRC detects accidental errors such as noise or truncation but offers no protection against deliberate tampering, since collisions are trivial to construct. Use SHA-256 or an HMAC when security matters.

Other Languages

CRC-16 Calculator — Base64.sh

CRC-16 Calculator | Online CRC16 Checksum for Modbus, CCITT, XMODEM & More

Free online CRC-16 calculator with 26 standard variants: Modbus, ARC, CCITT-FALSE, XMODEM, KERMIT, X-25, USB, DNP and more.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Compute 123456789 for every listed CRC-16 variant and compare its published check value.
Comparison reference
Published check values in the CRC variant catalogue.
Verification scope
These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)
  • crc16-checksum.test.js
    • catalogue: every variant reproduces its published check value for "123456789"
    • catalogue: names are unique and well formed

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.