IPv6 range to cidrs

ipv6-range-to-cidrs · version 1.0.0 · URLs & IP addresses · free, no key needed

Convert an arbitrary IPv6 address range into the minimal list of CIDR blocks that exactly covers it.

Use when you need to: ipv6 range to cidr · convert ipv6 range to cidrs · summarize ipv6 address range.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "first_address": "2001:db8::9",
  "last_address": "2001:db8::b"
}

Response:

{
  "result": {
    "cidrs": [
      "2001:db8::9/128",
      "2001:db8::a/127"
    ],
    "count": 2
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "ipv6-range-to-cidrs",
  "version": "1.0.0",
  "input": {
    "first_address": "2001:db8::9",
    "last_address": "2001:db8::b"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/ipv6-range-to-cidrs/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"first_address":"2001:db8::9","last_address":"2001:db8::b"}'

The machine-readable contract is at /v1/tools/ipv6-range-to-cidrs/versions/1.0.0.

CLI

node cli.mjs run ipv6-range-to-cidrs 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.