Checksum Calculator

Compute common lightweight checksums for frames and payloads: XOR, SUM, and LRC. Input can be HEX bytes or text (UTF-8). Everything runs locally in your browser.

Input

Result

Checksum (hex)
Checksum (dec)
Bytes (BE)
Bytes (LE)
Notes:
  • XOR: XOR of all bytes.
  • SUM: Sum of all bytes, then masked to N bits.
  • LRC: Two's complement of SUM(8-bit): LRC = (-SUM) & 0xFF.

FAQ

What is the difference between checksum and CRC?

Checksums are lightweight arithmetic methods, while CRC uses polynomial division with stronger error detection.

When should I use XOR checksum?

XOR is simple and fast for basic integrity checks, but less robust than CRC for noisy channels.

Related tools

CRC Calculator · HEX ⇄ ASCII ⇄ Binary · UART Packet Time