Skip to content
BEAD

CIDR / Subnet Calculator

Compute network, broadcast, host range, count, and mask for any IPv4 CIDR.

Total addresses
256
Usable hosts
254
Prefix
/24
Host bits
8
Network
192.168.1.0/24
Broadcast
192.168.1.255
First usable
192.168.1.1
Last usable
192.168.1.254
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Network (binary)
11000000.10101000.00000001.00000000
Mask (binary)
11111111.11111111.11111111.00000000
Next adjacent
192.168.2.0/24
Class
C (192.0.0.0–223.255.255.255)
Visibility
Private (RFC 1918)
</>Use this tool programmaticallycurl · JavaScript · MCP

Same tool, callable from any HTTP client or from Claude (via MCP). Anonymous: 100 req/day per IP. Sign up for 1,000 req/day.

curl
curl https://api.b-e-a-d.com/tools/cidr-calculator/run \
  -H "Content-Type: application/json" \
  -d '{
  "cidr": "10.0.0.0/24"
}'
JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/cidr-calculator/run", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "cidr": "10.0.0.0/24"
}),
});
const data = await res.json();
console.log(data.result);
MCP (Claude Desktop / Claude Code)
# In Claude Desktop / Claude Code, add to your MCP config:
{
  "mcpServers": {
    "bead": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.b-e-a-d.com"]
    }
  }
}

# Then ask Claude to call:
mcp__bead__bead_cidr_calculator

Full reference: developer docs · OpenAPI spec

About CIDR

CIDR notation packs an IP address and a prefix length into one string: 10.0.0.0/24is "the first 24 bits identify the network; the remaining 8 are host bits."

  • /30 — 4 addresses, 2 usable. Tiny point-to-point links.
  • /29 — 8 addresses, 6 usable. Small server VLANs.
  • /24 — 256 addresses, 254 usable. Classic Class C.
  • /16 — 65,536 addresses. Classic Class B.

/31 and /32 are special — the first describes a point-to-point pair (RFC 3021), the second a single host.

You might also like