{"uid":"cap_s6qF1EjkgkDOZmuYgTP6q","slug":"docparse-base64-encode-decode-25c69327","name":"DocParse Base64 Encode/Decode","description":"Pay-per-call tools for AI agents: any document to clean Markdown (PDF, Word, Excel, PowerPoint, web pages); US company fundamentals, SEC filings and insider trades; Treasury yields; FRED macro data; official FX rates (ECB, Bank of Russia); hash, base64, JWT, UUID and JSON utilities. x402 USDC micropayments, no account or API key. Charged only on success.","url":"https://72-56-90-243.sslip.io/v1/util/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["encode","decode"],"type":"string","description":"encode (default) or decode"},"input":{"type":"string","description":"Text to encode or base64 to decode"},"url_safe":{"type":"boolean","description":"Use base64url alphabet when encoding"}}},"responseSchema":{"type":"json","example":{"mode":"encode","result":"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_d5W-wkIBnEY5OZnV2EhaX","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 (including URL-safe variant) or decodes Base64 strings back to plain text, charged per successful call via USDC micropayment.","exampleAgentPrompt":"Base64 encode the string 'hello world' for me using the standard alphabet, not URL-safe.","exampleUseCases":[{"title":"Encoding credentials for HTTP Basic Auth","prompt":"I need to base64 encode the string 'myuser:mypassword' so I can use it in an HTTP Authorization header — standard alphabet, not URL-safe."},{"title":"Decoding a Base64 API response payload","prompt":"Can you decode this base64 string for me: 'eyJzdWIiOiIxMjM0NTY3ODkwIn0='? I want to see what the original text says."},{"title":"URL-safe Base64 encoding for a token","prompt":"Encode the text 'user_id=42&scope=read' to base64 using the URL-safe alphabet so it's safe to embed in a URL query parameter."}],"resultDescription":"A JSON object containing the mode used ('encode' or 'decode') and the result string — either the Base64-encoded output or the decoded plain text.","failureModes":["Invalid base64 input when decoding (malformed characters or padding) — returns error","Missing required 'input' field — returns validation error","Payment failure — no charge applied, request not processed","Unsupported mode value outside 'encode'/'decode' enum — returns validation error"],"whenToPreferThis":"Choose this endpoint when you need a simple, accountless, pay-per-use Base64 encode or decode operation without setting up API keys or subscriptions. Particularly useful in agent pipelines where Base64 conversion is an occasional utility step and a $0.001 USDC micropayment via x402 is acceptable. Prefer alternatives if you need bulk batch encoding or if you are in an environment that cannot perform x402 USDC payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:39:49.365Z","isFirstParty":false,"canonicalSlug":"docparse-base64-encode-decode-25c69327"}