Encode plaintext to Base64 or decode Base64 strings back to readable text. Specify "encode" or "decode" as the action. Defaults to encode if omitted.
delx base64 "Hello World" --action encode delx base64 "SGVsbG8gV29ybGQ=" --action decode
curl -X POST https://api.delx.ai/api/v1/utils/base64 \
-H "Content-Type: application/json" \
-d '{"input": "Hello World", "action": "encode"}'{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "base64",
"arguments": {
"input": "Hello World",
"action": "encode"
}
}
}The default output is standard Base64 with + and / characters. URL-safe encoding (using - and _) is not currently supported but is on the roadmap.
You will receive a clear error message indicating the input is not valid Base64. The response includes the error position when possible.
UTF-8 encoding is used for both encode and decode operations. This means international characters and emoji are fully supported.