{"uid":"cap_GpR5JU6fnNa5s78EB9Kjd","slug":"industrial-platform-web-tools-base64-encode-decode-ba4914ce","name":"Industrial Platform Web Tools – Base64 Encode/Decode","description":"Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.","url":"https://x402-gateway-production-1f21.up.railway.app/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["text"],"properties":{"mode":{"enum":["encode","decode"],"type":"string","description":"encode or decode; defaults to encode."},"text":{"type":"string","maxLength":250000,"description":"Input text or Base64 value."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"status":"ready"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_5lti23f4iTeJv9yaslUX2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes plain text to Base64 or decodes Base64 back to plain text via a machine-payable x402 HTTP endpoint.","exampleAgentPrompt":"Can you Base64-encode the text 'Hello, World! This is my payload.' for me so I can safely embed it in an HTTP header?","exampleUseCases":[{"title":"Encode API credential for HTTP header","prompt":"I need to Base64-encode the string 'myusername:mysecretpassword' so I can use it as a Basic Auth header — can you do that?"},{"title":"Decode an opaque token from a partner API","prompt":"I got this Base64 string back from an external service: 'eyJ1c2VyIjoiYWxpY2UiLCJyb2xlIjoiYWRtaW4ifQ==' — can you decode it so I can read what's inside?"},{"title":"Prepare JSON payload for safe URL embedding","prompt":"I have a JSON object I need to embed in a query parameter — can you Base64-encode the text '{\"user\":\"alice\",\"action\":\"login\"}' so it survives URL encoding?"}],"resultDescription":"Returns a JSON object with the transformed result: either a Base64-encoded string (when encoding) or the decoded plain text (when decoding), along with a status field confirming success.","failureModes":["Missing required 'text' field returns a validation error","Invalid Base64 string provided for decode mode returns a decoding error","Input text exceeds 250,000 character limit returns a payload-too-large error","Missing or invalid x402 payment header returns a 402 Payment Required response","Invalid 'mode' enum value (anything other than 'encode' or 'decode') returns a schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable, machine-payable Base64 encode or decode operation at $0.001 USDC per call without managing your own server-side utility. Ideal for AI agents that need on-demand encoding within an x402 micropayment workflow, especially when operating alongside other Industrial Platform utilities like checksums, crypto data, or web extraction on the same gateway.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:44:40.385Z","isFirstParty":false,"canonicalSlug":"industrial-platform-web-tools-base64-encode-decode-ba4914ce"}