Subnet calculator
Enter an IP address and a prefix (or a notation like 192.168.1.10/24) and instantly see the network address, broadcast, mask, wildcard, range and the number of usable hosts. Useful for network design and learning. Everything is computed in your browser. The basics are in What is an IP address.
Frequently asked questions
What is a CIDR prefix (for example /24)?
It says how many bits of the address define the network. /24 means 24 bits for the network and 8 for hosts, which is the mask 255.255.255.0 and 254 usable addresses.
Why are there two fewer usable hosts?
The first address in a subnet is the network address and the last is the broadcast, and those are not assigned to devices. This does not apply to /31 (point-to-point) and /32 (single host).
What is the difference between a private and a public IP?
Private ranges (10.x, 172.16-31.x, 192.168.x) are used inside networks and are not routable on the internet. There is more in our What is an IP address article.
