# CCC Tools Base64 Encoder/Decoder

> CCC Tools Base64 Encoder/Decoder is a paid API for AI agents from ccc-tools-phi.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Encodes plain text to Base64 or decodes Base64-encoded strings back to plain text via a micropayment-gated API

## Facts

- Endpoint: GET https://ccc-tools-phi.vercel.app/api/base64
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ccc-tools-base64-encoder-decoder-cf36d883
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NrtiyY-7Htej-frfqq-BG

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 ccc-tools-base64-encoder-decoder-cf36d883
```

Example prompt: Encode the text 'Hello, World! My secret is: abc123' to base64 using the CCC Tools encoder.

## When to prefer this

Use this endpoint when you need a quick, pay-per-use base64 encode/decode operation without setting up a local library or SDK. Ideal for AI agents that need on-demand text encoding within a micropayment workflow (x402 protocol). Prefer over local alternatives when running in a constrained environment where native base64 utilities aren't available.

## Known failure modes

- Missing or invalid mode parameter (must be 'encode' or 'decode') — returns error
- Missing text input — returns error
- Invalid base64 string provided in decode mode — returns decoding error
- Payment failure via x402 — returns 402 Payment Required
- Request timeout on Vercel serverless function

## How this service works

Developer utilities via x402 micropayments. QR code generation, markdown-to-HTML conversion, base64 encoding/decoding, hash generation (SHA256/SHA512/MD5), text statistics, and JSON formatting.

## Output

Returns a base64-encoded or decoded string depending on the mode specified. For encode mode, input plain text is transformed into a base64 representation; for decode mode, a base64 string is converted back to the original plain text.

## Example request

```json
{
 "mode": "encode",
 "text": "Hello, World! My secret is: abc123"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string",
   "description": "encode or decode"
  },
  "text": {
   "type": "string",
   "description": "Text to encode/decode"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ccc-tools-base64-encoder-decoder-cf36d883/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ccc-tools-phi.vercel.app](https://www.zero.xyz/host/ccc-tools-phi.vercel.app/llms.txt)
