Cloudesk

BCC / XOR Checksum

Calculate BCC (XOR) checksums from ASCII text or hexadecimal byte sequences

Enter data above to calculate the checksum.

What Is BCC / XOR Checksum?

BCC — Block Check Character

BCC is a simple error-detection method used in serial protocols (e.g., LRC in Modbus ASCII). The checksum byte is the result of XORing every data byte together.

How XOR Works

Each bit in the result is 1 if the corresponding bits in the two operands differ. XORing all bytes together produces a single byte that changes whenever any input byte changes.

Hex Input Format

Enter bytes in any format: continuous (F6A30D), space-separated (F6 A3 0D), comma-separated (F6, A3, 0D), 0x-prefixed (0xF6 0xA3 0x0D), or concatenated 0x (0xF60xA30x0D). All formats and mixed separators are accepted.

How to Use BCC / XOR Checksum

  1. 1Choose Text for plain ASCII strings or Hex for raw byte sequences.
  2. 2In Text mode every character is converted to its ASCII byte value.
  3. 3In Hex mode enter bytes in any of these formats: F6 A3 0D (space-separated), F6,A3,0D (comma-separated), 0xF6 0xA3 0x0D (0x-prefixed), 0xF60xA30x0D (concatenated 0x), or F6A30D (continuous).
  4. 4The BCC (Block Check Character) is the XOR of all input bytes. Results are shown in HEX, DEC, OCT and BIN.

Related Tools