{"uid":"cap_5idQpajFs1P4U_2eYr_jZ","slug":"hex-converter-1c84593a","name":"Hex Converter","description":"60 paid endpoints with no metering, no API key and no account. Each endpoint has one flat price per call, whatever the size of the request: LLM completions with automatic failover across several large models, read-only EVM tooling over Base, Ethereum, Polygon, Arbitrum and Optimism, and pure crypto utilities that touch no network.","url":"https://flat-rate-llm.kikoribera03.workers.dev/v1/util/hex","method":"POST","headers":{},"bodySchema":{"type":"object","required":["value"],"properties":{"as":{"type":"string","description":"hex | decimal | text. What the value IS. Defaults to autodetect."},"value":{"type":"string","description":"A 0x-prefixed hex string, a decimal number, or text."}}},"responseSchema":{"type":"object","properties":{"hex":{"type":"string"},"bytes":{"type":"number"},"decimal":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lyWjcrlrTonBV7agSVJVu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a value between hexadecimal, decimal, and UTF-8 text representations, handling arbitrarily large integers exactly.","exampleAgentPrompt":"What is 0x1a2b3c4d5e6f in decimal? I'm reading raw RPC output and need the exact integer — JavaScript numbers overflow on this.","exampleUseCases":[{"title":"Decode raw EVM RPC hex output","prompt":"I got this value back from an Ethereum RPC call: 0x000000000000000000000000000000000000000000000000000000003b9aca00 — can you convert it to a decimal number exactly? JavaScript is overflowing on it."},{"title":"Encode text message as hex","prompt":"Convert the text 'hello world' into its hex representation for me."},{"title":"Decode hex to human-readable text","prompt":"What does 0x48656c6c6f2c20576f726c6421 say in plain UTF-8 text?"}],"resultDescription":"Returns a JSON object with three fields: 'hex' (the 0x-prefixed hexadecimal representation), 'decimal' (the exact integer as a string, safe for big integers), and 'bytes' (the byte length of the value). All three formats are always returned regardless of which format was input.","failureModes":["Missing 'value' parameter returns an error — value is required","Invalid or malformed hex string (e.g. missing 0x prefix when format is hex) may cause a parse error","Providing an unrecognizable format when 'as' is set explicitly may return an error","Non-numeric text input when 'as' is decimal may fail parsing","Network or worker availability issues returning 5xx"],"whenToPreferThis":"Use this endpoint when you need to convert between hex, decimal, and UTF-8 text in a single call, especially when dealing with raw blockchain/RPC output where JavaScript number precision is insufficient. Prefer this over client-side conversion when exact big-integer arithmetic is needed or when you want all three representations simultaneously without writing parsing logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:42:58.544Z","isFirstParty":false}