# AgentTools Base64 Encode/Decode

> AgentTools Base64 Encode/Decode is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Encodes plain text to base64 or decodes base64 back to plain text, with full UTF-8 support including emoji and non-Latin scripts.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/dev/base64-encode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-base64-encode-decode-87aeac39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pZ4yVk9nlRhsvaUmPZ9gp

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 agenttools-base64-encode-decode-87aeac39
```

Example prompt: Can you base64-encode the text 'Hello, 世界! 🌍' for me?

## When to prefer this

Use this endpoint when an agent needs a simple, stateless base64 encode or decode operation with reliable UTF-8 support, including emoji and non-Latin scripts, without setting up a local library or relying on a general-purpose code execution environment.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Invalid base64 string passed for decode direction may return a decoding error
- Direction enum value other than 'encode' or 'decode' is rejected
- Very long text inputs may hit request size limits

## How this service works

Encode text to base64 or decode base64 back to text. Full UTF-8 support including emoji and non-Latin scripts. Use this when an agent needs to uTF-8 safe base64 in both directions.

## Output

A plain-text response containing either the base64-encoded version of the input text, or the UTF-8 decoded version of the provided base64 string, depending on the direction parameter chosen.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text"
      },
      "direction": {
       "enum": [
        "encode",
        "decode"
       ],
       "type": "string",
       "description": "Direction"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-base64-encode-decode-87aeac39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
