{"uid":"cap_iJEcSHp0yTvK2LWAJIaBs","slug":"agent402-tools-base64-encode-decode-aca22d03","name":"agent402.tools Base64 Encode/Decode","description":"Base64 encode or decode text. mode: encode (default) or decode. Handles URL-safe base64 on decode.","url":"https://agent402.tools/api/base64","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"type":"string","description":"encode | decode"},"text":{"type":"string","description":"Input text (max 100KB)"}}},"responseSchema":{"type":"json","example":{"mode":"encode","result":"aGVsbG8="}},"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_vk866fQSc7pX5NuNWiJfz","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 or decodes text using Base64 (including URL-safe Base64 on decode), accepting up to 100KB of input.","exampleAgentPrompt":"Can you Base64-encode this text for me: 'Hello, World! This is my secret payload' — use encode mode.","exampleUseCases":null,"resultDescription":"Returns the Base64-encoded or decoded string corresponding to the input text, with URL-safe Base64 handling applied automatically on decode operations.","failureModes":["Input text exceeds 100KB limit — request rejected","Invalid mode value (not 'encode' or 'decode') — may default to encode or return error","Malformed Base64 input on decode — returns error or garbled output","Missing 'text' field in request body — returns validation error"],"whenToPreferThis":"Use this endpoint when an agent needs a quick, stateless Base64 encode or decode operation without setting up a local utility, especially when working inside an x402 payment-enabled workflow and the input is under 100KB. Handles URL-safe Base64 decode automatically, which is useful for JWT or OAuth token inspection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.629Z","isFirstParty":false}