Convert between UTF-8, hex, base64, base64url, base32, base58; URL and HTML escaping
encodeConvert between UTF-8, hex, base64, base64url, base32, base58; URL and HTML escaping. Re-encodes data from one encoding to another (utf8, hex, base64, base64url, base32, base58), or applies url-encode / url-decode / html-escape / html-unescape. Reports invalid UTF-8 instead of guessing. Price: $0.003 USDC per call via x402 (eip155:8453).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data": "<data>"
},
"name": "encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | base64 | |
| data | Yes | ||
| from | No | utf8 |