{"uid":"cap_iSU7Sd5mLnguiB96NM6kD","slug":"encoding-transcode-e6ca550f","name":"encoding-transcode","description":"Convert text between utf-8, base64, hex, URL-percent-encoding and ascii representations.","url":"https://x402.agentindex.world/encoding/transcode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","title":"Text"},"to_encoding":{"type":"string","title":"To Encoding","pattern":"^(utf-8|base64|hex|url|ascii)$"},"from_encoding":{"type":"string","title":"From Encoding","pattern":"^(utf-8|base64|hex|url|ascii)$"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tGjX3GXoKJ0YHjLyOlSPM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text between utf-8, base64, hex, URL-percent-encoding, and ASCII representations.","exampleAgentPrompt":"Can you convert this base64 string 'SGVsbG8gV29ybGQ=' from base64 to utf-8 so I can read it as plain text?","exampleUseCases":[{"title":"Decode base64 API response","prompt":"I got this base64-encoded payload back from an API: 'SGVsbG8gV29ybGQ=' — can you decode it from base64 to utf-8 so I can see what it says?"},{"title":"URL-encode a query string parameter","prompt":"I need to embed this string 'hello world & goodbye!' into a URL query parameter — can you encode it as URL percent-encoding from utf-8?"},{"title":"Convert hex bytes to readable text","prompt":"I have this hex string '48656c6c6f' and I want to convert it from hex to utf-8 so I can read the actual text."}],"resultDescription":"Returns the transcoded text string in the requested target encoding. The response is a plain converted string — for example, a base64 string decoded to UTF-8 readable text, or a UTF-8 string encoded as hex or URL-percent-encoded format.","failureModes":["Invalid or unrecognized from_encoding or to_encoding value (must match pattern: utf-8, base64, hex, url, ascii)","Text content is not valid in the specified from_encoding (e.g. malformed base64 input)","Empty or missing text parameter","Payment failure or x402 authorization error ($0.002 USDC per call required)","Network timeout or service unavailability"],"whenToPreferThis":"Choose this endpoint when an agent needs a fast, lightweight, pay-per-call text encoding conversion without managing API keys or setting up a local library. It is ideal for quick one-off conversions between utf-8, base64, hex, URL-percent-encoding, and ASCII in automated pipelines, especially when the agent environment doesn't have convenient access to encoding utilities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:57.359Z","isFirstParty":false,"canonicalSlug":"encoding-transcode-e6ca550f"}