{"uid":"cap_PycrwtxTOx_NaItTGvLCp","slug":"web3-tools-hex-converter-78aab2c8","name":"Web3 Tools Hex Converter","description":"Convert hex to UTF-8 text or an integer (signed or unsigned), and text or integers to hex with 32-byte padding.","url":"https://web3-tools.x402tookit.com/hex-convert?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["op","value"],"properties":{"op":{"type":"string","description":"hex-to-text, text-to-hex, hex-to-int or int-to-hex"},"value":{"type":"string","description":"The hex, text or decimal integer to convert"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"bytes":{"type":["null","number"]},"signed":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"unsigned":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"signedDiffers":{"type":["boolean","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_f73zSfTtOcaEtB3kDVPWu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between hex strings, UTF-8 text, and signed/unsigned integers with 32-byte padding for EVM/blockchain data handling.","exampleAgentPrompt":"Can you decode this hex string to readable text: 0x48656c6c6f20576f726c64? I want to know what it says in plain UTF-8.","exampleUseCases":[{"title":"Decode ABI-encoded string from calldata","prompt":"I pulled this hex value out of an Ethereum transaction's calldata: 0x48656c6c6f20576f726c64 — can you convert it to plain text so I can read what it says?"},{"title":"Encode integer as 32-byte padded hex","prompt":"I need to encode the integer 255 as a 32-byte padded hex value for a smart contract call — can you do an int-to-hex conversion for me?"},{"title":"Convert contract event data hex to number","prompt":"This EVM event log has a hex value 0x000000000000000000000000000000000000000000000000000000000000007B — what is that as a signed and unsigned integer?"}],"resultDescription":"Returns the converted value in the requested format: for hex-to-text, the UTF-8 decoded string; for hex-to-int, both signed and unsigned integer representations; for text-to-hex or int-to-hex, the hex string with 32-byte padding. Also includes metadata fields such as source, bytes, summary, and any reasons or disclaimer.","failureModes":["Invalid hex string (non-hex characters or malformed 0x prefix) returns an error","Unknown or missing 'op' query parameter causes failure","Non-UTF-8 byte sequences in hex-to-text conversion may result in garbled or error output","Integer out of range for int-to-hex may not be handled gracefully","Missing required 'value' query parameter returns an error"],"whenToPreferThis":"Choose this endpoint when you need to convert between hex, text, and integer representations in an EVM/blockchain context — especially when 32-byte padding is required for ABI compatibility. It handles both directions (encode/decode) and signed vs unsigned integers, making it ideal for parsing calldata, event logs, or ABI-encoded parameters without needing a local web3 library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:19:58.484Z","isFirstParty":false,"canonicalSlug":"web3-tools-hex-converter-78aab2c8"}