{"uid":"cap_Gf4722mFJTw7f0Cop9HKP","slug":"foundry-base64-encoder-decoder-0b1267b1","name":"Foundry Base64 Encoder/Decoder","description":"Base64 encoder and decoder, standard and URL-safe. Input: 'encode: text' or 'decode: aGVsbG8='.","url":"https://minty-sprout.onrender.com/v1/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"description":"'encode: <text>' or 'decode: <base64>'"}}},"responseSchema":{"type":"json","example":{"mode":"encode","base64":"aGVsbG8gd29ybGQ=","base64url":"aGVsbG8gd29ybGQ"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VR4O0l8c88xsJc7tEwjNT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 (standard and URL-safe) or decodes Base64 strings back to plain text","exampleAgentPrompt":"Can you base64 encode the text 'Hello, World!' and give me both the standard and URL-safe versions?","exampleUseCases":[{"title":"Encode API credentials for auth header","prompt":"Base64 encode the string 'myuser:mysecretpassword' so I can use it in a Basic Authorization header."},{"title":"Decode unknown Base64 payload","prompt":"I received this Base64 string and I have no idea what it says — can you decode it for me? It's 'SGVsbG8sIHRoaXMgaXMgYSBzZWNyZXQgbWVzc2FnZQ=='"},{"title":"Generate URL-safe Base64 for token embedding","prompt":"Encode 'user_id=42&session=abc123' in Base64 — I need the URL-safe version so I can safely put it in a query parameter."}],"resultDescription":"Returns a JSON object containing the detected mode ('encode' or 'decode'), the standard Base64 output, and the URL-safe Base64 output (with padding stripped). For decode mode, returns the original plain text.","failureModes":["Invalid Base64 string passed for decoding returns an error","Input exceeds 8000 character maximum length","Malformed instruction prefix (not 'encode:' or 'decode:') may result in unexpected behavior","Non-UTF-8 characters in decoded output may cause rendering issues"],"whenToPreferThis":"Use this endpoint when you need a quick, stateless Base64 encode or decode operation without setting up a local library, especially in agent workflows that need both standard and URL-safe variants in a single call. Ideal for generating authorization headers, embedding tokens in URLs, or inspecting unknown Base64 payloads.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:42.753Z","isFirstParty":false,"canonicalSlug":"foundry-base64-encoder-decoder-0b1267b1"}