{"uid":"cap_kJ5B1ngUfjFMB5j983XJ_","slug":"text-openverbs-com-decode-544537cd","name":"text.openverbs.com Decode","description":"Decode a base64, base64url, hex, base32, or URL percent-encoded string back into UTF-8 text. Malformed input for the chosen encoding is rejected as a clean 400.","url":"https://text.openverbs.com/v1/decode","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","encoding"],"properties":{"text":{"type":"string","maxLength":1000000,"description":"The encoded text to decode."},"encoding":{"enum":["base64","base64url","hex","base32","url"],"type":"string","description":"Source encoding, one of base64, base64url, hex, base32, url."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4M4h856dnvhEERqTTCbRw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a base64, base64url, hex, base32, or URL percent-encoded string back into UTF-8 text, rejecting malformed input with a 400 error.","exampleAgentPrompt":"Can you decode this base64 string back into plain text: 'SGVsbG8sIFdvcmxkIQ=='?","exampleUseCases":[{"title":"Decode base64 API response payload","prompt":"I got this base64-encoded string back from an API and I need to read what it actually says — can you decode 'SGVsbG8sIFdvcmxkISBUaGlzIGlzIGEgdGVzdC4=' from base64 into plain text?"},{"title":"Read URL percent-encoded query parameter","prompt":"This URL parameter is percent-encoded and I can't read it — can you decode 'Hello%20World%21%20How%20are%20you%3F' using URL encoding so I can see the actual text?"},{"title":"Extract message from hex-encoded string","prompt":"Someone sent me a hex-encoded message and I need to know what it says — please decode '48656c6c6f2c20576f726c6421' from hex into readable UTF-8 text."}],"resultDescription":"Returns the decoded UTF-8 text string corresponding to the input encoded value. If the input is malformed or invalid for the specified encoding, a 400 error is returned with a clean rejection message.","failureModes":["Malformed or invalid characters for the chosen encoding → 400 Bad Request","Input text exceeding 1,000,000 character limit → rejected","Unsupported encoding type specified → validation error","Empty input string → likely 400 or empty result","Payment not provided or insufficient → 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a reliable, single-call decode from any of base64, base64url, hex, base32, or URL percent-encoding back to UTF-8 text, with strict validation that rejects malformed input cleanly. Prefer it over rolling your own decoding logic when correctness and error clarity matter, or when running in an agent context where a clean 400 on bad input is more useful than a silent failure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:22.268Z","isFirstParty":false}