{"uid":"cap_9pcBQcjfdBqhWvXnBpMkW","slug":"base-number-converter-29b16799","name":"Base Number Converter","description":"Convert a number between bases 2 to 36 exactly (binary, octal, decimal, hex), with big-integer precision.","url":"https://units-convert.x402tookit.com/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"],"properties":{"value":{"type":"string","description":"The number, digits only (optional 0x/0b prefix)"},"to_base":{"type":"integer","description":"Base of the output, 2 to 36, default 16"},"from_base":{"type":"integer","description":"Base of the input, 2 to 36, default 10"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"hex":{"type":["null","string"]},"asOf":{"type":["null","string"]},"input":{"type":["null","string"]},"octal":{"type":["null","string"]},"binary":{"type":["null","string"]},"result":{"type":["null","string"]},"source":{"type":["null","string"]},"toBase":{"type":["null","number"]},"decimal":{"type":["null","string"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"fromBase":{"type":["null","number"]},"bitLength":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}}}}}}}},"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_IPBvhvmiPLUYGT2nwZe4e","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 a number between any two bases from 2 to 36 (binary, octal, decimal, hex, etc.) with big-integer precision","exampleAgentPrompt":"Convert the decimal number 255 to hexadecimal — and also show me its binary and octal representations.","exampleUseCases":[{"title":"Hex color code from decimal","prompt":"I have the decimal value 16711680 and I need its hexadecimal equivalent — can you convert it from base 10 to base 16 for me?"},{"title":"Programmer debugging binary value","prompt":"I'm looking at a binary value 0b11111111 and I need to know what it is in decimal and hex — can you convert it?"},{"title":"Base 36 short ID encoding","prompt":"Can you convert the decimal number 987654321 into base 36? I'm trying to generate a compact alphanumeric ID from a large integer."}],"resultDescription":"Returns the converted number as a string in the target base, plus parallel representations in binary, octal, decimal, and hex, along with the bit length of the value and metadata about the conversion (input, fromBase, toBase, summary, and any disclaimer).","failureModes":["Invalid characters in the value string for the given from_base (e.g. '9' in binary input)","from_base or to_base outside the 2–36 range","Missing required 'value' query parameter","Non-numeric or malformed input string causing a parse error","Very large inputs may exceed processing limits"],"whenToPreferThis":"Use this endpoint when you need precise, big-integer-safe base conversion between any two bases from 2 to 36, especially when you also want the standard representations (binary, octal, decimal, hex) returned together in a single call. Prefer it over general-purpose calculators when you need programmatic access with structured JSON output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:01.809Z","isFirstParty":false,"canonicalSlug":"base-number-converter-29b16799"}