Catalog/encoding-crc

Encoding

CRC checksum family API

Computes CRC-8/SMBus, CRC-16/CCITT-FALSE, CRC-16/MODBUS, CRC-32 (ISO-HDLC) or CRC-32C (Castagnoli) over bytes with correct reflection and xor-out per variant. Answers 'What is the CRC-32 of this data?', 'Compute the Modbus CRC-16 of these bytes.'

Price$0.02per request
MethodPOST
Route/v1/encoding/crc
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
crccrc32crc32ccrc16crc8checksummodbusencoding
API URLhttps://x402.hexl.dev/v1/encoding/crc
Integration docs
Example request
{
  "value": "123456789",
  "variant": "crc32"
}
Example response
{
  "variant": "crc32",
  "checksum": 3421780262,
  "checksumHex": "0xcbf43926",
  "byteLength": 9,
  "interpretation": "crc32 of 9 bytes = 0xcbf43926."
}
Input schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "type": "string",
      "examples": [
        "123456789"
      ]
    },
    "variant": {
      "type": "string",
      "enum": [
        "crc8",
        "crc16-ccitt",
        "crc16-modbus",
        "crc32",
        "crc32c"
      ]
    },
    "inputEncoding": {
      "type": "string",
      "examples": [
        "utf8",
        "hex",
        "base64"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}