# AgentTools Number Base Converter

> AgentTools Number Base Converter is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Converts integers from one numeric base to another (bases 2–36, e.g. binary, octal, decimal, hex) with BigInt precision and no magnitude limit.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/dev/number-base-converter?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-number-base-converter-48cf8004
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E-VdpidX3Z0qRRswV8iAC

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-48cf8004
```

Example prompt: Convert the binary number 11111111 to hexadecimal — that's from base 2 to base 16.

## When to prefer this

Use this endpoint when you need reliable, precision-safe base conversion for arbitrarily large integers across any base from 2 to 36. It is ideal when standard JavaScript Number precision (53-bit) would be insufficient, or when you need conversions beyond the common binary/octal/decimal/hex quartet — such as base-32 or base-36 encodings.

## Known failure modes

- Invalid digits for source base (e.g. '9' in a base-8 number) — returns an error
- Source or target base outside the 2–36 range — returns validation error
- Missing required query parameters (value, from, to) — returns 400-level error
- Non-integer or floating-point value input — likely unsupported

## 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 number as a string representation in the target base, computed with BigInt precision so arbitrarily large integers are handled correctly without floating-point loss.

## 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-48cf8004/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
