Dev Tools

Network

IP Subnet Calculator

Calculate network details like netmask, broadcast address, and usable IP range from a CIDR block.

DevOps

Enter an IP address above to verify subnet details.

About IP Subnet Calculator

The IP Subnet Calculator is an essential utility for network engineers and DevOps professionals. It takes an IP address and CIDR suffix (e.g., 192.168.1.0/24) and breaks down the network configuration into actionable details.

Plan your network architecture with precision. Quickly determine the subnet mask, broadcast address, and the range of usable IP addresses for any given network block. This tool supports both IPv4 and IPv6 addressing schemes.

Simply enter your IP and partial mask (CIDR). The calculator instantly displays the Network Address, First and Last usable host IPs, and the total number of hosts available in that subnet.

Under the Hood

This tool uses the `ip-address` library to parse and manipulate IP addresses. It performs bitwise operations to mask the host bits for the network address and invert them for the broadcast address. For IPv4, it calculates the range of usable hosts by adding 1 to the network address (First IP) and subtracting 1 from the broadcast address (Last IP). Support for IPv6 includes canonical expansion and abbreviation logic.