/cidr CIDR / Subnet Calculator

Give it a CIDR block and get the whole picture back — network and broadcast addresses, netmask and wildcard, the usable host range and the address count.

GET plain HTTP ok no signupnothing stored
curl curlhub.sh/cidr/10.0.0.0/24

Usage

With curl

curl curlhub.sh/cidr/10.0.0.0/24
curl "curlhub.sh/cidr?cidr=192.168.1.0/26"

With the CLI

curlhub cidr/10.0.0.0/24

Structured output for scripts

curl -s curlhub.sh/cidr/10.0.0.0/24 -H 'Accept: application/json'

Output

Parameters

InputWhat it does
/{ip}/{bits}The block as path segments — curlhub.sh/cidr/10.0.0.0/24.
?cidr=The block as a single query parameter.
Accept: application/jsonReturn every field as JSON for scripting.

Recipes

Size a subnet before you cut it

curl -s curlhub.sh/cidr/10.0.0.0/22 | grep Usable

Find the broadcast address

curlhub cidr/192.168.1.0/26 | grep Broadcast