{"uid":"cap_RVf2nIhkPXH8xPBo3I0PS","slug":"agent402-tools-hex-encoder-decoder-68a84b07","name":"agent402.tools Hex Encoder/Decoder","description":"Hex encode or decode text. mode: encode (default) or decode.","url":"https://agent402.tools/api/hex","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"type":"string","description":"encode | decode"},"text":{"type":"string","description":"Input text (max 100KB)"}}},"responseSchema":{"type":"json","example":{"mode":"encode","result":"6869"}},"example":{"request":{"mode":"encode","text":"Hello, World!"},"response":{"mode":"encode","result":"48656c6c6f2c20576f726c6421"}},"exampleRequest":{"mode":"encode","text":"Hello, World!"},"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_Ui_THlAgPeW7OmrP3dsUp","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 hexadecimal or decodes hexadecimal back to plain text","exampleAgentPrompt":"Can you hex-encode this string for me: 'Hello, World!' — use encode mode.","exampleUseCases":null,"resultDescription":"Returns the hex-encoded or hex-decoded result string corresponding to the input text, depending on the selected mode (encode or decode).","failureModes":["Input text exceeds 100KB limit — request rejected","Invalid mode value (not 'encode' or 'decode') — may default to encode or return error","Malformed hex string passed in decode mode — returns error or garbled output","Missing text field — returns validation error","Payment not included or insufficient — 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a simple, reliable hex encode or decode operation on a text payload up to 100KB, especially within an x402 micropayment workflow where the cost per call is known ($0.001 USDC). Prefer this over rolling your own conversion when you need a quick remote utility call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.347Z","isFirstParty":false}