{"uid":"cap_wEikZxz4pB2E4g_Hypm6G","slug":"fastx402-number-base-converter-034dd7dc","name":"FastX402 Number Base Converter","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/number-base-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":["value","from_base","to_base"],"properties":{"value":{"type":"string","description":"Integer to convert, e.g. \"ff\", \"-1011\", \"7z\"; optional leading + or - sign"},"to_base":{"type":"string","description":"Target base as a decimal number from 2 to 36"},"from_base":{"type":"string","description":"Source base as a decimal number from 2 to 36"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"value":{"type":"string"},"result":{"type":"string"},"to_base":{"type":"integer"},"from_base":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"value":"ff","result":"11111111","to_base":2,"from_base":16}},"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_VOEUfq5ttOX1c6eSqDTgj","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 from one numeric base to another (any base 2–36, e.g. hex to binary, octal to decimal)","exampleAgentPrompt":"Convert the hexadecimal number 'ff' to binary — so from base 16 to base 2.","exampleUseCases":[{"title":"Hex to binary for debugging","prompt":"I've got a hex value 'A3F' and I need to see it as a binary string — convert it from base 16 to base 2."},{"title":"Decimal to base 36 encoding","prompt":"Convert the decimal number 255 to base 36 — I need the shortest possible alphanumeric representation."},{"title":"Signed binary to decimal parsing","prompt":"I have a signed binary number '-1011' in base 2 and I need to know what it equals in decimal (base 10)."}],"resultDescription":"A JSON object containing the original value string, the converted result string, the source base as an integer, and the target base as an integer. Example: {\"value\":\"ff\",\"result\":\"11111111\",\"to_base\":2,\"from_base\":16}.","failureModes":["Invalid or non-integer value for the given source base (e.g. 'g' for base 16) — likely returns an error or unexpected result","from_base or to_base outside the range 2–36 — invalid base error","Missing required query parameters (value, from_base, or to_base) — HTTP 400 or similar","Payment failure (x402 micropayment not completed) — HTTP 402 response before computation occurs"],"whenToPreferThis":"Use this endpoint when an AI agent needs programmatic, reliable base conversion between any two bases from 2 to 36, including support for signed integers and alphanumeric digits (bases up to 36). Prefer it over general-purpose code execution for lightweight, fast, pay-per-call arithmetic without needing a sandbox. It is ideal for agents processing hex color codes, binary flags, base32/base36 identifiers, or any numeric encoding translation task.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T00:36:30.575Z","isFirstParty":false,"canonicalSlug":"fastx402-number-base-converter-034dd7dc"}