{"uid":"cap_75mn9gWUMD-JKzakAT6s9","slug":"base64-encode-decode-7236c420","name":"Base64 Encode / Decode","description":"Base64-encode UTF-8 text or decode base64 back to text, standard or URL-safe alphabet. Deterministic, no network.","url":"https://grokzilla.shop/api/skills/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["encode","decode"],"type":"string"},"text":{"type":"string","maxLength":400000},"url_safe":{"type":"boolean","default":false}}},"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_ShjSjntCBQRpKspT6IQUR","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 UTF-8 text to base64 or decodes base64 back to text, supporting standard and URL-safe alphabets, with no network calls.","exampleAgentPrompt":"Base64-encode this string using the URL-safe alphabet: 'Hello, World! This is my payload.'","exampleUseCases":[{"title":"Encode credentials for Basic Auth","prompt":"I need to create an HTTP Basic Auth header — base64-encode the string 'myuser:s3cr3tP@ssw0rd' for me using standard alphabet."},{"title":"Decode a JWT payload segment","prompt":"Can you decode this base64 segment from a JWT payload back to readable JSON? Here it is: eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIn0"},{"title":"URL-safe encode a file upload token","prompt":"Encode this token string 'upload+key/2024==extra' to URL-safe base64 so I can safely embed it in a query parameter."}],"resultDescription":"Returns a JSON object with the converted string — either the base64-encoded representation of the input text or the decoded UTF-8 text, depending on the chosen mode. The operation is deterministic and requires no network access.","failureModes":["Invalid base64 input when decoding (malformed characters or incorrect padding) returns an error","Text exceeding the 400,000 character limit is rejected","Missing required fields (mode or text) cause a validation error","Requesting decode on non-base64 content may return a decoding error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, deterministic base64 encode or decode operation without spinning up a local library or executing code. Ideal for agents in sandboxed environments that lack access to native encoding utilities, or when you need URL-safe base64 specifically toggled via a parameter rather than manual alphabet substitution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:30:09.800Z","isFirstParty":false,"canonicalSlug":"base64-encode-decode-7236c420"}