◇Free
IPv4 subnet calculator
Compute network, broadcast, netmask and usable range.
Compute network, broadcast, netmask and usable range. Combine an IPv4 address and CIDR prefix to report the mask, subnet bounds and host counts. Prefixes /31 and /32 use all addresses as usable endpoints in the result.
How to use
- Enter your text, values, or image.
- Adjust the options and run the tool.
- Copy or download your result.
Worked example
Example input
IPv4 address: 192.168.1.42 CIDR prefix: 24
Example result
{
"network": "192.168.1.0",
"broadcast": "192.168.1.255",
"netmask": "255.255.255.0",
"addresses": 256,
"usableHosts": 254,
"first": "192.168.1.1",
"last": "192.168.1.254"
}Limitations and details
The calculation does not probe the network or account for provider reservations, routing policy and addresses already in use.
Inputs and options
- IPv4 address
- Text
- CIDR prefix
- Number · Minimum: 0 · Maximum: 32
Frequently asked questions
Is this tool free and private?
Yes. All 300 tools are free in this phase. Processing happens in your browser; your input and files are not sent to our servers.