Catalog/encoding-base32

Encoding

Base32 RFC4648 + Crockford API

Encodes/decodes bytes as RFC4648 base32 or Crockford base32 (padding-aware, hex/base64/utf8 input), returning hex + UTF-8 views of decoded output. Answers 'What is the base32 of these bytes?', 'Decode this Crockford base32 string.'

Price$0.01per request
MethodPOST
Route/v1/encoding/base32
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
base32rfc4648crockfordencodedecodecodecbytesencoding
API URLhttps://x402.hexl.dev/v1/encoding/base32
Integration docs
Example request
{
  "value": "foobar"
}
Example response
{
  "operation": "encode",
  "variant": "rfc4648",
  "result": "MZXW6YTBOI======",
  "byteLength": 6,
  "interpretation": "Encoded 6 bytes to 16-char rfc4648 base32."
}
Input schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "type": "string",
      "examples": [
        "foobar"
      ]
    },
    "operation": {
      "type": "string",
      "enum": [
        "encode",
        "decode"
      ]
    },
    "variant": {
      "type": "string",
      "enum": [
        "rfc4648",
        "crockford"
      ]
    },
    "inputEncoding": {
      "type": "string",
      "examples": [
        "utf8",
        "hex",
        "base64",
        "latin1"
      ]
    },
    "padding": {
      "type": "boolean"
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}