# ForgeMesh Base Converter

> ForgeMesh 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-13).

Converts a numeric value between any two bases from 2 to 36, including binary, octal, decimal, and hexadecimal.

## Facts

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

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-base-converter-5f741496 -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need exact, instant numeric base conversion between any bases 2 through 36, including non-standard bases beyond the common binary/octal/decimal/hex quartet. Prefer it over general-purpose math libraries when operating in an agent pipeline that needs a simple, stateless API call without installing or running local code.

## Known failure modes

- Invalid characters in value string for the given from_base (e.g. '9' in a base-8 number)
- from_base or to_base outside the supported 2–36 range
- Missing or empty value field
- Non-integer or fractional input values may not be supported

## How this service works

Number base conversion API: convert between any bases 2-36 — binary, octal, decimal, hex, and beyond. Exact, instant.

## Output

Returns the converted numeric value as a string in the requested target base, given the source value and the from/to base parameters.

## 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-base-converter-5f741496/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)
