# x402 Utils – Text Encoding & Decoding

> x402 Utils – Text Encoding & Decoding is a paid API for AI agents from qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Encodes or decodes text using base64, base64url, hex, URL percent-encoding, or HTML escaping.

## Facts

- Endpoint: POST https://qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/v1/encode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utils-text-encoding-decoding-bb246970
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aP4CH6pXRdUZVsoiTdl_n

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-utils-text-encoding-decoding-bb246970 -d '<json body>'
```

Example prompt: Can you base64-encode this string for me: 'Hello, World! This is my API key payload'?

## When to prefer this

Choose this endpoint when you need a quick, reliable, stateless text encoding or decoding operation (base64, base64url, hex, URL percent-encoding, or HTML escaping) without setting up a local library or runtime. Ideal for AI agents that need to prepare text for HTTP transmission, safely embed user content in HTML, or interpret encoded values from APIs and tokens.

## Known failure modes

- Invalid or unsupported operation enum value returns an error
- Input text exceeding 1 MB limit is rejected
- Malformed base64 or hex input passed to a decode operation may return a decoding error
- Missing required fields (op or text) result in a validation error

## How this service works

Encode or decode text: base64, base64url, hex, URL (percent) encoding and HTML escaping.

## Output

Returns the transformed text as output — the encoded, decoded, escaped, or unescaped version of the input string, corresponding to the chosen operation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "op": {
   "enum": [
    "base64-encode",
    "base64-decode",
    "base64url-encode",
    "base64url-decode",
    "hex-encode",
    "hex-decode",
    "url-encode",
    "url-decode",
    "html-escape",
    "html-unescape"
   ],
   "type": "string",
   "description": "what to do"
  },
  "text": {
   "type": "string",
   "description": "the text (up to 1 MB)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utils-text-encoding-decoding-bb246970/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws](https://www.zero.xyz/host/qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/llms.txt)
