Australian Jeevitham TECHDeveloper tools

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

#SubnetUsable rangeBroadcastHosts

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.

PrefixSubnet maskAddressesUsable
/16255.255.0.065,53665,534
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/30255.255.255.25242

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.