Convert text to or from base64, URL, HTML or punycode
encodeEncode or decode text as base64, base64url, hex, URL (percent) encoding, HTML entities, punycode (domain names) or quoted-printable. Body { input, scheme, direction }, up to 1 MB. Invalid input to decode is a 400 that names the position of the first bad character. Unknown HTML entities are reported, not guessed. Pure code, no outside request. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
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": {
"input": "<input>",
"scheme": "<scheme>"
},
"name": "encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The text to encode or decode (JSON body field) | |
| scheme | Yes | base64, base64url, hex, url, html, punycode or quoted-printable | |
| direction | No | encode (default) or decode |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| scheme | No | ||
| source | No | ||
| checkedAt | No | ||
| direction | No |