{"uid":"cap_BLpEHwTzhuDNEt-TuLnSw","slug":"x402-utility-tools-base64-codec-bb00389e","name":"x402 Utility Tools – Base64 Codec","description":"A compact x402 utility surface for agents that need cheap, repeatable non-LLM transformations before spending on heavier routes: CSV cleanup, JSON Schema checks, timestamp conversion, JWT decode, URL normalization, hashes, codecs, and text utilities.","url":"https://x402-utils.558686.xyz/v1/tools/base64-codec?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"ok":true,"tool":"base64-codec","input":{"mode":"encode","text":"x402 tools"},"route":"/v1/tools/base64-codec","result":{"mode":"mode_example","bytes":1,"output":"output_example"},"project":"x402-utility-tools","deterministic":true}},"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.0001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2OKrw2eWuWwMzbXZbGemB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0001","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 via a lightweight, deterministic, pay-per-call API endpoint.","exampleAgentPrompt":"Base64-encode the text 'x402 tools are great' for me using encode mode.","exampleUseCases":[{"title":"Encode API credentials for auth header","prompt":"I need to Base64-encode the string 'myuser:mypassword' in encode mode so I can use it in a Basic Authentication header."},{"title":"Decode an unknown Base64 payload","prompt":"Can you decode this Base64 string for me using decode mode: 'eDQwMiB0b29scw=='? I need to see what the original text says."},{"title":"Prepare text for embedded JSON transmission","prompt":"Encode the text 'Hello, World! Special chars: <>&' to Base64 encode mode so I can safely embed it in a JSON field without escaping issues."}],"resultDescription":"Returns a JSON object with ok=true, the tool name ('base64-codec'), the echoed input (mode and text), the route used, and a result object containing the mode applied, the byte length of the input, and the output string (encoded or decoded). The response is deterministic for the same input.","failureModes":["Invalid mode value (not 'encode' or 'decode') may result in an error or unexpected output","Missing 'text' field returns an error response","Malformed Base64 input in decode mode may return a decoding error","Payment failure (402) if x402 micropayment is not properly attached","Network timeout on the upstream host"],"whenToPreferThis":"Choose this endpoint when you need a cheap ($0.002 USDC), deterministic, repeatable Base64 encode/decode operation without spinning up an LLM or a full data pipeline. It is ideal for agents that need to prepare strings for HTTP headers, embed data in JSON, or decode opaque payloads as a preprocessing step before heavier operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T00:33:10.014Z","isFirstParty":false,"canonicalSlug":"x402-utility-tools-base64-codec-bb00389e"}