Base64 Encode / Decode API - text or files
base64_encode_decodeEncode text or a file to Base64 or decode Base64 back, with URL-safe variant. Runs on our server, files are deleted right after the call, nothing stored. Free: 25 calls/day per IP. Paid: $0.001 per call via x402 at https://radarbg.com/x402/base64-encode-decode.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "encode",
"text": "hello"
},
"name": "base64_encode_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | encode or decode | encode |
| text | No | The text | |
| files | No | Or several files: [{fileName, fileContent (base64)}] | |
| urlSafe | No | URL-safe alphabet (- and _) | |
| fileName | No | File name with extension, e.g. report.pdf | |
| fileContent | No | Or send a file as base64 (a data: URI is fine) instead of text |