{"uid":"cap_W8R7zfSl-0ETvJDrX8Dg6","slug":"string-encoding-converter-base64-base64url-hex-6c923218","name":"String Encoding Converter (Base64, Base64URL, Hex)","description":"Encode a string. ?to=base64|base64url|hex&input=hello","url":"https://pyfile-agent.taile3ff35.ts.net/data/encode","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"],"type":"string"},"queryParams":{"type":"object","properties":{"to":{"type":"string"},"input":{"type":"string"}}}}},"output":{"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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4Lqdl8br510xlLn5nyGYQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes an input string into a specified encoding format: base64, base64url, or hex","exampleAgentPrompt":"Can you encode the string 'Hello, World!' to base64 for me?","exampleUseCases":[{"title":"Base64-encode payload for API auth","prompt":"Encode my API key string 'sk_live_abc123xyz' to base64 so I can use it in a Basic Auth header."},{"title":"Hex-encode binary data for logging","prompt":"Convert the string 'error_payload_v2' to hex encoding so I can safely embed it in a log message."},{"title":"Base64URL-encode JWT claim","prompt":"I need to encode the string 'user:12345:admin' using base64url format — it needs to be URL-safe for a JWT claim."}],"resultDescription":"Returns the encoded representation of the input string in the requested format (base64, base64url, or hex), suitable for direct use in downstream systems, headers, or data pipelines.","failureModes":["Missing 'input' query parameter returns an error","Unsupported 'to' encoding type (not base64, base64url, or hex) may return an error or unexpected result","Very large input strings may result in timeout or truncation","Network errors or service unavailability return HTTP 5xx"],"whenToPreferThis":"Choose this endpoint when you need a quick, hosted, on-demand string encoding without running local code — particularly useful for agents that need to encode values in real-time workflows, construct auth headers, or prepare URL-safe tokens without access to a local runtime environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:09:33.283Z","isFirstParty":false}