Utilities
Encode/decode (base64/hex/utf8) API
Convert a value between utf8, hex, and base64. Answers queries like 'base64 encode this', 'decode this base64', 'string to hex', 'hex to text'.
Price$0.01per request
MethodPOST
Route/v1/util/encode
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
utilencodedecodebase64hexconversion
API URL
Integration docshttps://x402.hexl.dev/v1/util/encodeExample request
{
"value": "hello",
"from": "utf8",
"to": "base64"
}Example response
{
"from": "utf8",
"to": "base64",
"result": "aGVsbG8="
}Input schema
{
"type": "object",
"required": [
"value",
"from",
"to"
],
"properties": {
"value": {
"type": "string"
},
"from": {
"type": "string",
"enum": [
"utf8",
"hex",
"base64"
]
},
"to": {
"type": "string",
"enum": [
"utf8",
"hex",
"base64"
]
}
}
}Output schema
{
"type": "object",
"required": [
"from",
"to",
"result"
],
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"result": {
"type": "string"
}
}
}