🌐 Subnet Tools

Calculate subnets, CIDR notation, network ranges, and supernets. Choose a tool below to get started.

Subnet Calculator Calculate network address, broadcast address, host range, and usable hosts from an IP address and CIDR prefix. CIDR to Subnet Mask Converter Convert CIDR notation to subnet mask and vice versa. Supports both /prefix notation and dotted-decimal subnet masks. IP Range Calculator Calculate the usable IP address range for any subnet. Shows first host, last host, broadcast address, and total usable hosts. Wildcard Mask Calculator Calculate the wildcard mask from a subnet mask or CIDR prefix. Wildcard masks are the inverse of subnet masks, used in ACLs. Supernet Calculator Find the smallest supernet that covers two given subnets. Used for route summarization and aggregation.

What Is Subnetting?

Subnetting is the process of dividing a larger IP network into smaller, more manageable sub-networks (subnets). Each subnet has its own network address, broadcast address, and range of usable host addresses. Subnetting improves network performance by reducing broadcast domain size, enhances security by isolating segments, and enables more efficient use of IP address space. In IPv4, a subnet is defined by a network address and a subnet mask (or its CIDR prefix equivalent).

Understanding CIDR Notation

CIDR (Classless Inter-Domain Routing) notation represents a subnet as an IP address followed by a slash and the prefix length — for example, 192.168.1.0/24. The prefix length indicates how many of the 32 bits in the IP address are the network portion; the remaining bits identify individual hosts. A /24 network has 24 network bits and 8 host bits, giving 2⁸ = 256 addresses (254 usable hosts, since the network address and broadcast address are reserved). A /16 network has 65,536 addresses; a /30 network has just 4 addresses (2 usable), suitable for point-to-point links.

Subnet Mask vs. Wildcard Mask

A subnet mask uses 1s to mark the network portion and 0s for the host portion. The /24 subnet mask is 255.255.255.0 in dotted-decimal (11111111.11111111.11111111.00000000 in binary). A wildcard mask is the bitwise inverse of the subnet mask — /24 becomes 0.0.0.255. Wildcard masks are used in Cisco ACLs (access control lists) and OSPF area configuration to specify which bits should be matched and which should be ignored. Our wildcard mask calculator converts between the two formats instantly.

Route Summarization with Supernets

Supernetting (route summarization or route aggregation) is the opposite of subnetting — it combines multiple contiguous subnets into a single larger route advertisement. This reduces the size of routing tables in large networks. For example, four /26 subnets (192.168.1.0/26, 192.168.1.64/26, 192.168.1.128/26, 192.168.1.192/26) can be summarized as a single /24 route. Route summarization is a key technique in OSPF area border routers and BGP to minimize routing overhead between autonomous systems.