{"uid":"cap_Nxod4sh9EQaQn38ErZKJ9","slug":"base64-codec-18f77751","name":"Base64 Codec","description":"Encode or decode base64. POST {\"mode\":\"encode\",\"input\":\"...\"} or {\"mode\":\"decode\",...}. Supports standard and url-safe alphabets via {\"urlsafe\":true}. Decoding validates the input and reports an error rather than returning silent garbage.","url":"https://x402-echo-service.onrender.com/base64","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["encode","decode"]},"input":{"type":"string","maxLength":65536},"urlsafe":{"type":"boolean"}}},"responseSchema":null,"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_XE-RVD2nHU7xD5SMkCNLg","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 base64 strings, supporting both standard and URL-safe alphabets with strict validation on decode.","exampleAgentPrompt":"Encode the string 'Hello, World!' to URL-safe base64 for me.","exampleUseCases":[{"title":"Encode JWT payload for transmission","prompt":"Take this JSON string '{\"user\":\"alice\",\"role\":\"admin\"}' and encode it as URL-safe base64 so I can use it in a JWT header."},{"title":"Decode and validate API token","prompt":"I got this base64 string 'SGVsbG8gV29ybGQ=' from an API response — can you decode it and tell me what it says? Make sure it's actually valid base64."},{"title":"Prepare binary data for URL embedding","prompt":"Encode this data 'image+data/example==' using URL-safe base64 so it won't break when I put it in a query parameter."}],"resultDescription":"Returns the encoded or decoded string result. For encode mode, returns the base64 representation of the input. For decode mode, returns the original plaintext if the input is valid base64, or an explicit error message if the input is malformed — never silent garbage.","failureModes":["Invalid base64 input in decode mode returns an error rather than corrupted output","Input exceeding 65536 characters is rejected","Missing or invalid 'mode' field causes request rejection","Mixing standard and URL-safe base64 characters may cause decode validation errors"],"whenToPreferThis":"Choose this endpoint when you need reliable base64 encoding or decoding with strict input validation — particularly when silent decode errors are unacceptable. The explicit error reporting on invalid input makes it safer than naive base64 libraries. The URL-safe alphabet support is useful when encoding data for embedding in URLs or filenames.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:39:56.997Z","isFirstParty":false}