CIDR calculator

Network, broadcast, host range, and membership for IPv4 and IPv6.

Runs in browser

Use from your agent

Streamable HTTP at https://benchline.fabwaseem.com/mcp. No key. The tool name is calculate_cidr.

mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/calljson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "calculate_cidr",
7 "arguments": {
8 "cidr": "example"
9 }
10 }
11}

How it works

Free subnet calculator. Enter an IPv4 or IPv6 CIDR and see the network, mask, broadcast, first and last host, and the address count. Test whether an address is inside, split the block, or merge adjacent networks.

  1. 01

    Enter a CIDR

    192.168.1.0/24 or 2001:db8::/32. Host bits are masked off in the network address.

  2. 02

    Test, split, or merge

    Optional: an address to test, a longer prefix, or more CIDRs to aggregate.

  3. 03

    Read the range

    The network, mask, broadcast, and host count update as you type.

FAQ