{"uid":"cap_IJXXZ3TvTnQFoOZVRwFUU","slug":"base-converter-a509f7c2","name":"Base Converter","description":"Convert an integer between bases 2 and 36. Pure CPU, instant.","url":"https://api.gadgethumans.com/base-convert?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["value"],"properties":{"to":{"type":"integer","description":"Target base (default 16)"},"from":{"type":"integer","description":"Source base (default 10)"},"value":{"type":"string","description":"Number to convert"}}}}},"output":{"type":"object","properties":{"example":{"ok":true}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XpjdVVKCsoozNNz8pHL3I","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an integer from one numeric base to another, supporting bases 2 through 36.","exampleAgentPrompt":"Convert the number 255 from base 10 to hexadecimal (base 16) for me.","exampleUseCases":[{"title":"Decimal to binary conversion","prompt":"What is the number 42 in binary? Convert it from base 10 to base 2."},{"title":"Hex to decimal for debugging","prompt":"I have a hex value FF3A — can you convert that from base 16 to base 10 so I can read it as a regular decimal number?"},{"title":"Octal to hexadecimal for file permissions","prompt":"Convert the octal number 755 (base 8) to hexadecimal (base 16) for me."}],"resultDescription":"Returns a JSON object with a boolean 'ok' field and the converted number as a string in the target base.","failureModes":["Invalid characters for specified source base (e.g. '9' in base 8)","Source or target base outside range 2–36 returns an error","Empty or missing 'value' parameter causes a 400-style error","Non-numeric or non-string value input causes a parsing error"],"whenToPreferThis":"Use this endpoint when you need a fast, server-side numeric base conversion between any bases 2 through 36 without spinning up local computation. Ideal for agents that need to convert hex color codes, binary flags, or any integer representation on the fly. Prefer this over client-side JavaScript when operating in a sandboxed or server-only environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:57:18.826Z","isFirstParty":false,"canonicalSlug":"base-converter-a509f7c2"}