# Base32 Encoder/Decoder

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

Encodes or decodes data to/from Base32 using RFC 4648, Crockford, DNS-safe, TOTP/2FA, or human-readable variants

## Facts

- Endpoint: GET https://api.x402node.dev/encode/base32
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-5fc0f058
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ju-iCilmK7Y150iBeucy_

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 api-x402node-dev-5fc0f058
```

Example prompt: Encode the string 'HelloWorld' to Base32 using the RFC 4648 standard — I need the human-readable base32 output for a TOTP secret.

## When to prefer this

Use this endpoint when you need standards-compliant Base32 encoding or decoding, especially for TOTP/2FA secret key formatting, DNS-safe identifiers, or Crockford-variant encoding. Prefer it over Base64 endpoints when human readability or compatibility with authenticator apps is required.

## Known failure modes

- Invalid or malformed input data returns an error response
- Unsupported encoding variant specified returns a bad request error
- Binary input not properly serialized causes a decode failure
- Attempting to decode invalid Base32 characters (non-alphabet) returns an error

## How this service works

Base32 encoder/decoder, RFC 4648, Crockford, case-insensitive, DNS, TOTP secret, 2FA key encoding, human-readable base32. Encode binary or text to/from Base32. Accepts payment on Base or Solana — either network works.

## Output

Returns the Base32-encoded or decoded result for the given input, using the specified variant (RFC 4648, Crockford, DNS-safe, or TOTP-compatible human-readable form).

## Example request

```json
{
 "text": "HelloWorld",
 "variant": "rfc4648"
}
```

## 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": {
      "mode": {
       "type": "string",
       "description": "Operation mode (optional)"
      },
      "text": {
       "type": "string",
       "description": "Input text (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-5fc0f058/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
