Catalog/convert-number-base

Convert

Number base / roman numerals API

Convert a number between bases 2–36 (binary, octal, decimal, hex, etc.) or to/from Roman numerals. Answers 'decimal to hex', 'binary to decimal', '255 in hexadecimal', '2026 in roman numerals'.

Price$0.01per request
MethodPOST
Route/v1/convert/number-base
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
convertbasebinaryhexadecimalromanradixnumber
API URLhttps://x402.hexl.dev/v1/convert/number-base
Integration docs
Example request
{
  "value": "255",
  "from": 10,
  "to": 16
}
Example response
{
  "value": "255",
  "from": "10",
  "to": "16",
  "result": "ff",
  "decimal": 255
}
Input schema
{
  "type": "object",
  "required": [
    "value",
    "from",
    "to"
  ],
  "properties": {
    "value": {
      "type": "string"
    },
    "from": {
      "description": "2-36 or 'roman'",
      "examples": [
        10
      ]
    },
    "to": {
      "description": "2-36 or 'roman'",
      "examples": [
        16
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "required": [
    "value",
    "from",
    "to",
    "result",
    "decimal"
  ],
  "properties": {
    "value": {
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "result": {
      "type": "string"
    },
    "decimal": {
      "type": "number"
    }
  }
}