# AgentTools Number Base Converter

> AgentTools Number Base Converter is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Converts a number from one base to another (any base 2–36, e.g. binary, octal, decimal, hex) with arbitrary BigInt precision.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/dev/number-base-converter?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-number-base-converter-82fdb35f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nze8CRVXGdFyh5d_pvxlk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agenttools-number-base-converter-82fdb35f
```

Example prompt: Can you convert the hexadecimal number 1A3F from base 16 to decimal (base 10)?

## When to prefer this

Use this endpoint when you need reliable, arbitrary-precision conversion between any two numeral bases from 2 to 36, especially for large integers that exceed standard floating-point limits. It handles binary, octal, decimal, hexadecimal, and any custom base up to 36, making it suitable for cryptographic work, embedded systems, color encoding, or any computation requiring exact base conversion without rounding errors.

## Known failure modes

- Invalid digits for the specified source base (e.g. '9' in a base-8 number) — returns an error
- Source or target base outside the 2–36 range — returns a validation error
- Missing required query parameters (value, from, to) — returns a 400-level error
- Non-numeric or malformed base values — returns a parsing error

## How this service works

Convert integers between any bases from 2 to 36 — binary, octal, decimal, hexadecimal and beyond — with BigInt precision (no limit on magnitude). Use this when an agent needs to binary, octal, decimal, hex — any base 2–36.

## Output

Returns the converted numeric string in the target base, representing the input value expressed in the requested numeral system, with full BigInt precision for arbitrarily large numbers.

## Request schema (JSON Schema)

```json
{
 "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",
      "to"
     ],
     "properties": {
      "to": {
       "type": "number",
       "description": "To base (2–36)"
      },
      "from": {
       "type": "number",
       "description": "From base (2–36)"
      },
      "value": {
       "type": "string",
       "description": "Digits valid for the source base"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-number-base-converter-82fdb35f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
