Catalog/encoding-base85

Encoding

ASCII85 / Z85 codec API

Encodes/decodes bytes as ASCII85 (Adobe-style with 'z' run shortcut) or Z85 (ZeroMQ RFC32), handling partial trailing groups. Answers 'What is the ASCII85 of this data?', 'Decode this Z85 string.'

Price$0.01per request
MethodPOST
Route/v1/encoding/base85
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
base85ascii85z85zeromqencodedecodecodecencoding
API URLhttps://x402.hexl.dev/v1/encoding/base85
Integration docs
Example request
{
  "value": "Man "
}
Example response
{
  "operation": "encode",
  "variant": "ascii85",
  "result": "9jqo^",
  "byteLength": 4,
  "interpretation": "Encoded 4 bytes to ASCII85."
}
Input schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "type": "string",
      "examples": [
        "Man "
      ]
    },
    "operation": {
      "type": "string",
      "enum": [
        "encode",
        "decode"
      ]
    },
    "variant": {
      "type": "string",
      "enum": [
        "ascii85",
        "z85"
      ]
    },
    "inputEncoding": {
      "type": "string",
      "examples": [
        "utf8",
        "hex",
        "base64"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}