{"uid":"cap_pZ4yVk9nlRhsvaUmPZ9gp","slug":"agenttools-base64-encode-decode-87aeac39","name":"AgentTools Base64 Encode/Decode","description":"Encode text to base64 or decode base64 back to text. Full UTF-8 support including emoji and non-Latin scripts. Use this when an agent needs to uTF-8 safe base64 in both directions.","url":"https://agentstoolshub.com/api/v1/dev/base64-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"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text"},"direction":{"enum":["encode","decode"],"type":"string","description":"Direction"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_lxp_khvv6lqcnW3tCp9zz","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":"Encodes plain text to base64 or decodes base64 back to plain text, with full UTF-8 support including emoji and non-Latin scripts.","exampleAgentPrompt":"Can you base64-encode the text 'Hello, 世界! 🌍' for me?","exampleUseCases":[{"title":"Encode API payload for safe transport","prompt":"I need to base64-encode this JSON string before sending it in an HTTP header: '{\"user\":\"alice\",\"role\":\"admin\"}' — can you do that?"},{"title":"Decode a base64 token from a webhook","prompt":"I got this base64 string from a webhook response and need to read what's inside it — can you decode 'SGVsbG8sIFdvcmxkISDwn4yN' back to plain text?"},{"title":"Encode multilingual content with emoji","prompt":"Encode this string to base64 for me, it includes emoji and Arabic text: 'مرحبا 👋 Hello'"}],"resultDescription":"A plain-text response containing either the base64-encoded version of the input text, or the UTF-8 decoded version of the provided base64 string, depending on the direction parameter chosen.","failureModes":["Missing required 'text' query parameter returns an error","Invalid base64 string passed for decode direction may return a decoding error","Direction enum value other than 'encode' or 'decode' is rejected","Very long text inputs may hit request size limits"],"whenToPreferThis":"Use this endpoint when an agent needs a simple, stateless base64 encode or decode operation with reliable UTF-8 support, including emoji and non-Latin scripts, without setting up a local library or relying on a general-purpose code execution environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:50.744Z","isFirstParty":false,"canonicalSlug":"agenttools-base64-encode-decode-87aeac39"}