IPv4 Subnet Calculator
Get the network address, broadcast address, mask and usable host range for any IPv4 subnet.
The mask is the first N bits set to 1. Network = IP AND mask. Broadcast = network OR the inverted mask. Usable hosts = 2^(32 − N) − 2 (a /31 has 2 and a /32 has 1).
Results are estimates for planning and learning. Check important numbers against your own data and a qualified professional. Everything is calculated in your browser; nothing you enter is sent anywhere.