# ForgeMesh Number Base Converter

> ForgeMesh Number Base Converter is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Converts a number from any base (2–36) to any other base (binary, octal, decimal, hex, base-36, etc.) instantly and exactly.

## Facts

- Endpoint: POST https://x402.forgemesh.io/convert-number-base
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-number-base-converter-eba9342b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3mz29PiEqp53RpKCWCKjV

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 forgemesh-number-base-converter-eba9342b -d '<json body>'
```

Example prompt: Convert the decimal number 255 to hexadecimal — so from base 10 to base 16.

## When to prefer this

Use this endpoint when an agent needs exact, instant conversion of a number between any two bases from 2 to 36, especially for low-level programming tasks, binary/hex encoding, or puzzle-solving. Prefer it over general-purpose unit converters that lack arbitrary base support.

## Known failure modes

- Invalid characters in value for the given from_base (e.g. '9' in binary)
- from_base or to_base outside the 2–36 range
- Non-numeric or empty value string
- Payment failure via x402 protocol

## How this service works

Number base converter API: convert a number between any bases from 2 to 36 (binary, octal, decimal, hexadecimal, base-36...). Exact and instant. For low-level programming, encoding, and puzzle agents.

## Output

The agent receives the input number converted to the specified target base as a string, enabling exact representation in the requested numeral system.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "string"
  },
  "to_base": {
   "type": "string",
   "description": "2-36, default 2"
  },
  "from_base": {
   "type": "string",
   "description": "2-36, default 10"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "ff",
  "decimal": 255
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-number-base-converter-eba9342b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
