# Base64 Encode UTF-8 String

> Base64 Encode UTF-8 String is a paid API for AI agents from x402render-u5vwpxpyua-uc.a.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Encodes a UTF-8 text string into its Base64 representation

## Facts

- Endpoint: POST https://x402render-u5vwpxpyua-uc.a.run.app/base64-encode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base64-encode-utf-8-string-bbe8bff1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iCjaKhp2lP6aE9ug-MeVw

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 base64-encode-utf-8-string-bbe8bff1 -d '<json body>'
```

Example prompt: Can you base64-encode the string 'Hello, World!' for me?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use Base64 encoding of a UTF-8 string without setting up a local library or running code. Especially useful in agent pipelines where code execution is unavailable and a simple HTTP call suffices.

## Known failure modes

- Non-UTF-8 or binary input may cause encoding errors or unexpected results
- Empty string input may return an empty Base64 string or an error
- Very long strings may hit payload size limits
- Payment failure (402) if USDC balance is insufficient

## How this service works

Base64-encode a UTF-8 string

## Output

A Base64-encoded string representation of the provided UTF-8 input text, suitable for safe embedding in headers, URLs, JSON payloads, or any context requiring binary-safe ASCII encoding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base64-encode-utf-8-string-bbe8bff1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402render-u5vwpxpyua-uc.a.run.app](https://www.zero.xyz/host/x402render-u5vwpxpyua-uc.a.run.app/llms.txt)
