IPv4 range to cidrs

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

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

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

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "first_address": "192.168.1.9",
  "last_address": "192.168.1.11"
}

Response:

{
  "result": {
    "cidrs": [
      "192.168.1.9/32",
      "192.168.1.10/31"
    ],
    "count": 2
  }
}

How to call it

MCP

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

{
  "id": "ipv4-range-to-cidrs",
  "version": "1.0.0",
  "input": {
    "first_address": "192.168.1.9",
    "last_address": "192.168.1.11"
  }
}

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.