# Network Calc IP Format Converter

> Network Calc IP Format Converter is a paid API for AI agents from network-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Converts an IPv4 or IPv6 address between multiple notations: RFC 5952 compressed, expanded, integer, hex, binary, reverse DNS, and NAT64.

## Facts

- Endpoint: GET https://network-calc.x402tookit.com/ip-format?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/network-calc-ip-format-converter-2408a7a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TKhOIfL00iuG7nM8os3Eg

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 network-calc-ip-format-converter-2408a7a6
```

Example prompt: Can you convert 2001:0db8:0000:0000:0000:ff00:0042:8329 into all its different notations — compressed, expanded, hex, binary, integer, and reverse DNS?

## When to prefer this

Use this endpoint when you need to convert or normalize a single IPv4 or IPv6 address across multiple notations in one call. It is especially useful when you need reverse DNS strings for PTR records, NAT64 compatibility checks, or canonical RFC 5952 forms for configuration files and logging. Prefer it over manual calculation or general-purpose networking libraries when operating in an agent pipeline that needs a reliable, paid API with structured JSON output.

## Known failure modes

- Invalid or malformed IP address input returns valid=false with reasons listing parsing errors
- Empty or missing 'ip' query parameter causes a 400-level error
- Ambiguous or non-standard address strings may return degraded=true with partial results
- NAT64 and IPv4-mapped fields may be null for pure IPv4 inputs where not applicable

## How this service works

Convert an IPv4 or IPv6 address between notations: RFC 5952 compressed, expanded, integer, hex, binary, reverse DNS, NAT64.

## Output

Returns a structured object containing: compressed, expanded, canonical, integer, hex, binary, reverseDns, and NAT64 representations of the input IP address, along with metadata like IP version, address type, validity flag, embedded IPv4, IPv4-mapped forms, and any error reasons or warnings.

## 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": [
      "ip"
     ],
     "properties": {
      "ip": {
       "type": "string",
       "description": "IPv4 (192.0.2.1) or IPv6 address, any valid form, for example 2001:0db8:0:0:0:ff00:42:8329"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "hex": {
       "type": [
        "null",
        "string"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "nat64": {},
      "valid": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "binary": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "integer": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "version": {
       "type": [
        "null",
        "number"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "expanded": {
       "type": [
        "null",
        "string"
       ]
      },
      "canonical": {
       "type": [
        "null",
        "string"
       ]
      },
      "compressed": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "ipv4Mapped": {},
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "reverseDns": {
       "type": [
        "null",
        "string
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/network-calc-ip-format-converter-2408a7a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from network-calc.x402tookit.com](https://www.zero.xyz/host/network-calc.x402tookit.com/llms.txt)
