{"uid":"cap_YLnYo251MXBGgpdMHrd86","slug":"24klabs-base64-hex-url-codec-8dd4ef53","name":"24KLabs Base64/Hex/URL Codec","description":"Encode or decode a string across base64, base64url, hex, and URL/percent encoding.","url":"https://api.24klabs.ai/api/base64-hex-codec","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"type":"string"},"input":{"type":"string"},"alphabet":{"type":"string"}}},"responseSchema":{"type":"json","example":{"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_vbIrPqq0XDz_i0j8uZBGO","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":"Encode or decode strings across base64, base64url, hex, and URL/percent-encoding formats.","exampleAgentPrompt":"Can you decode this base64url string for me: 'aGVsbG8td29ybGQ'? I want to see the original plain text.","exampleUseCases":[{"title":"Decode JWT payload for inspection","prompt":"Take the middle part of this JWT token — 'eyJ1c2VySWQiOiAxMjMsICJyb2xlIjogImFkbWluIn0' — and decode it from base64url so I can read the JSON inside."},{"title":"URL-encode a query string parameter","prompt":"I need to URL/percent-encode this string so I can safely put it in a query parameter: 'hello world & foo=bar'. Can you encode it for me?"},{"title":"Convert hex dump back to readable text","prompt":"I've got this hex-encoded string '48656c6c6f20576f726c64' from a log file — can you decode it to plain text so I can see what it says?"}],"resultDescription":"Returns the transformed string in the requested output encoding format (e.g. a base64-encoded string, a decoded UTF-8 string, hex digits, or percent-encoded text), along with metadata about the operation performed.","failureModes":["Invalid input string for the chosen decode operation (e.g. non-base64 characters in base64 decode) — returns an error","Unsupported encoding format specified — returns a validation error","Malformed request body missing required fields — returns 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a quick, reliable server-side encoding or decoding transformation across base64, base64url, hex, or URL/percent-encoding — especially useful in agentic workflows where you cannot run client-side code, need consistent cross-format conversion, or are chaining with other 24KLabs utilities on the same platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:09.356Z","isFirstParty":false}