{"uid":"cap_Mr3QrGXy9qIhTVQ9QFFdg","slug":"encode-decode-fc4135ff","name":"Encode / Decode","description":"Encode or decode text: base64, base64url, hex, URL percent-encoding, HTML entities, ROT13, binary, Unicode escapes and punycode, or detect to try decoding unknown input.","url":"https://bess-x402.onrender.com/v1/util/encode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Input text"},"operation":{"type":"string","description":"e.g. base64_encode, url_decode, detect"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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_G_VATub7IxtZ_wrJmPPW_","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":"Encode or decode text using formats like base64, hex, URL percent-encoding, HTML entities, ROT13, binary, Unicode escapes, and punycode, with auto-detect support.","exampleAgentPrompt":"Can you base64-decode this string for me: 'SGVsbG8sIFdvcmxkIQ=='?","exampleUseCases":[{"title":"Decode mysterious base64 payload","prompt":"I found this string in a config file and I think it's base64 encoded — can you decode it? The string is 'dXNlcjpwYXNzd29yZA=='"},{"title":"URL-encode text for query string","prompt":"I need to URL percent-encode this text so I can safely put it in a query parameter: 'hello world & goodbye = true'"},{"title":"Auto-detect and decode unknown encoding","prompt":"I have this weird looking string and I'm not sure what encoding it is — can you detect what it is and decode it? The string is '48656c6c6f20576f726c64'"}],"resultDescription":"The agent receives the transformed text result — either the encoded or decoded version of the input string — along with metadata about the operation performed (e.g. encoding format detected or applied). For 'detect' operations, the response includes the identified encoding type and the decoded value.","failureModes":["Invalid or malformed input text that cannot be decoded in the specified format","Unsupported encoding operation name returns an error","Missing required 'text' query parameter returns a validation error","Auto-detect ('detect' operation) may fail or return ambiguous results if the input matches multiple encodings","Non-UTF-8 binary data passed as text may cause decoding errors"],"whenToPreferThis":"Choose this endpoint when you need to programmatically encode or decode text in any of the supported formats (base64, base64url, hex, URL encoding, HTML entities, ROT13, binary, Unicode escapes, punycode) — especially when you don't know the encoding type and want auto-detection. It covers a broad range of common encoding formats in a single endpoint, making it ideal for general-purpose text transformation tasks in agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:14:25.722Z","isFirstParty":false,"canonicalSlug":"encode-decode-fc4135ff"}