{"uid":"cap_fQfQobV5kVO0ndfuArV9P","slug":"agent402-tools-base-converter-5e9ffea2","name":"agent402.tools Base Converter","description":"Convert an integer between number bases (radix 2-36), e.g. binary↔hex↔decimal. Arbitrary size via BigInt.","url":"https://agent402.tools/api/base-convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"number","description":"2-36"},"from":{"type":"number","description":"2-36"},"value":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":"11111111"}},"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_j08eG3VgUrddxoUkK5r8x","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":"Converts an integer string between any two number bases (radix 2–36) using arbitrary-precision BigInt arithmetic.","exampleAgentPrompt":"Convert the binary number 11111111 to hexadecimal — treat the input as base 2 and give me the result in base 16.","exampleUseCases":null,"resultDescription":"Returns the input integer string converted and expressed in the target base as a string, supporting arbitrarily large integers via BigInt.","failureModes":["Invalid 'from' or 'to' base outside 2–36 range returns an error","Non-numeric or invalid characters for the specified source base cause a parse error","Missing required fields (value, from, to) result in a validation error","Payment failure or missing x402 header returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need precise, arbitrary-precision number base conversion between any radix 2–36, especially for large integers that exceed native language integer limits. Prefer it over client-side code when the agent doesn't have a reliable math library available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:58:14.078Z","isFirstParty":false}