Tech / IP Subnet Calculator
IP Subnet Calculator
Enter an IPv4 address with a prefix to see its network, broadcast address, mask and usable range, then split it into smaller subnets.
Network
Result
| Nothing to show yet. |
Binary
| Nothing to show yet. |
Bold bits are the network part; the rest identify the host.
Is an address inside?
Split into smaller subnets
| # | Subnet | Usable range | Broadcast | Hosts |
|---|
Understanding CIDR and subnets
An IPv4 address has 32 bits. In 192.168.1.0/24, the /24 means the first 24 bits name the network and the last 8 bits number the devices on it. That gives 256 addresses, of which 254 can be used, because the first is the network address and the last is the broadcast address.
| Prefix | Subnet mask | Addresses | Usable |
|---|---|---|---|
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /30 | 255.255.255.252 | 4 | 2 |
Private address ranges
Home routers, office networks and cloud networks use the private ranges from RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. These addresses are not reachable from the internet directly, so the same ranges are used in millions of networks.
Planning cloud subnets
A common plan is one 10.0.0.0/16 network split into /24 subnets - one public and one private subnet in each zone. Enter the /16 above, then use "Split into smaller subnets" with a new prefix of 24 to list them. Remember that AWS and Azure keep 5 addresses in every subnet for their own use, so a cloud /24 gives 251 usable addresses, not 254.
Everything is worked out in your browser, and nothing is sent anywhere.