{"uid":"cap_iCjaKhp2lP6aE9ug-MeVw","slug":"base64-encode-utf-8-string-bbe8bff1","name":"Base64 Encode UTF-8 String","description":"Base64-encode a UTF-8 string","url":"https://x402render-u5vwpxpyua-uc.a.run.app/base64-encode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_P9L4va9kN67yZBgCTqEnC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes a UTF-8 text string into its Base64 representation","exampleAgentPrompt":"Can you base64-encode the string 'Hello, World!' for me?","exampleUseCases":[{"title":"Embedding credentials in HTTP headers","prompt":"Base64-encode the string 'myuser:mypassword' so I can use it in a Basic Auth header."},{"title":"Encoding config values for environment variables","prompt":"I need to store this JSON string as a base64-encoded environment variable — can you encode it? The string is '{\"apiKey\":\"abc123\",\"env\":\"prod\"}'."},{"title":"Preparing binary-safe payload for API transmission","prompt":"Encode the text 'Dear John, your verification code is 482910.' in Base64 so I can safely embed it in a JSON field."}],"resultDescription":"A Base64-encoded string representation of the provided UTF-8 input text, suitable for safe embedding in headers, URLs, JSON payloads, or any context requiring binary-safe ASCII encoding.","failureModes":["Non-UTF-8 or binary input may cause encoding errors or unexpected results","Empty string input may return an empty Base64 string or an error","Very long strings may hit payload size limits","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use Base64 encoding of a UTF-8 string without setting up a local library or running code. Especially useful in agent pipelines where code execution is unavailable and a simple HTTP call suffices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:46:26.596Z","isFirstParty":false}