# Text Encoding and Decoding Converter

> Text Encoding and Decoding Converter is a paid API for AI agents from toolbelt402.tpoborne.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Encodes or decodes text between base64, base64url, hex, URL percent-encoding, and HTML entities formats

## Facts

- Endpoint: POST https://toolbelt402.tpoborne.workers.dev/encode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-encoding-and-decoding-converter-1b38b545
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l41xvbuau8ioXJcI445e2

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 text-encoding-and-decoding-converter-1b38b545 -d '<json body>'
```

Example prompt: Can you decode this base64url string for me: 'SGVsbG8gV29ybGQ'? Just give me the plain text result.

## When to prefer this

Choose this endpoint when an AI agent needs reliable, correct encoding/decoding across base64, base64url (with proper padding handling), hex, URL percent-encoding, or HTML entities — especially for edge cases like base64url padding that agents frequently get wrong on their own. Prefer this over attempting in-context encoding logic when correctness is critical or when the encoding type is ambiguous.

## Known failure modes

- Invalid or malformed input string for the specified source encoding (e.g. non-hex characters in hex decode)
- Unsupported encoding format requested
- Empty input string
- Payment failure or insufficient USDC balance for x402 call

## How this service works

Encode or decode text: base64, base64url (padding handled), hex, URL percent-encoding, and HTML entities. The conversions agents most often get wrong.

## Output

Returns the converted string in the requested target encoding, along with metadata such as the detected source format, the target format, and the resulting encoded or decoded text value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "op": {
   "enum": [
    "encode",
    "decode"
   ],
   "type": "string"
  },
  "input": {
   "type": "string"
  },
  "format": {
   "enum": [
    "base64",
    "base64url",
    "hex",
    "url",
    "html"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-encoding-and-decoding-converter-1b38b545/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolbelt402.tpoborne.workers.dev](https://www.zero.xyz/host/toolbelt402.tpoborne.workers.dev/llms.txt)
