# agent402.tools Base32 Encoder/Decoder

> agent402.tools Base32 Encoder/Decoder is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Encodes plain text to Base32 (RFC 4648) format or decodes Base32-encoded strings back to plain text.

## Facts

- Endpoint: POST https://agent402.tools/api/base32
- 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/agent402-tools-base32-encoder-decoder-b968ad39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s5mUp1m62Aoi0J12tIZd_

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 agent402-tools-base32-encoder-decoder-b968ad39 -d '<json body>'
```

Example prompt: Can you base32-encode the text 'Hello, World!' for me using RFC 4648?

## When to prefer this

Use this endpoint when you need a simple, reliable Base32 (RFC 4648) encode or decode operation as a paid micro-service via x402 protocol, without running your own encoding library or compute.

## Known failure modes

- Invalid mode value (not 'encode' or 'decode') results in an error
- Decoding invalid or malformed Base32 input may return an error or corrupted output
- Missing 'text' field in request body causes a bad request error
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Base32 (RFC 4648) encode or decode text. mode: encode (default) or decode.

## Output

Returns the Base32-encoded or Base32-decoded version of the input text string, depending on the chosen mode.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string",
   "description": "encode | decode"
  },
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "encode",
  "result": "NBSWY3DP"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-base32-encoder-decoder-b968ad39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
