Base64 encode and decode
util_base64Base64 in both directions, including the URL-safe alphabet, with UTF-8 handled properly. Encoding is what carries payloads through headers and JSON, and x402 itself rides on it. Flat $0.001 per call, paid over x402 (USDC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | encode | decode. Defaults to encode. | |
| input | Yes | The text or base64 to convert. | |
| urlSafe | No | Use the URL-safe alphabet (-_ instead of +/). |