IPv4 CIDR subnet calculator

Enter an IPv4 address and prefix to see the network, mask, broadcast address and usable host range.

IPv4 only

Network
Subnet mask
Wildcard mask
Broadcast
Usable host range
Usable addresses
Total addresses
Input address
Calculated locally without network requests.

Understanding IPv4 subnet calculations

A CIDR prefix such as /24 tells you how many leading bits represent the network. An IPv4 address has 32 bits in total, so a /24 has 8 host bits and therefore 256 total addresses. In a conventional /24 subnet, the first is the network address and the last is the broadcast address, leaving 254 ordinarily usable addresses.

Worked example: 192.168.1.100/24

The network address is 192.168.1.0, the broadcast address is 192.168.1.255, and the ordinary usable range is 192.168.1.1 through 192.168.1.254. The subnet mask is 255.255.255.0.

Why /31 and /32 are special

A /31 contains two addresses that can both be used on point-to-point links as described in RFC 3021. A /32 describes a single address, commonly used as a host route. Those cases are calculated separately rather than subtracting two addresses.

Does this work for cloud providers?

This page reports general IPv4 arithmetic. AWS, Azure and other platforms may reserve additional addresses or apply different rules. Always use your cloud provider’s published allocation rules when planning deployment.

Frequently asked questions

What is a wildcard mask?

The wildcard mask is the bitwise inverse of the subnet mask. For a /24, the mask is 255.255.255.0 and the wildcard is 0.0.0.255.

Does this tool support IPv6?

No. This version is intentionally limited to IPv4 so its fields and host assumptions remain clear.

Can it inspect my network?

No. It calculates values from the address you provide and does not scan devices or connect to your router.

Need another configuration utility?

Browse the tools collection to convert YAML or validate JSON.

See all tools →