Loading tool...
Find your public IP address, location, timezone, and ISP information instantly. Free, fast, and private IP lookup tool
Focus timer using Pomodoro technique with work/break sessions, circular progress, presets (Classic 25/5, Deep Work, 52/17), stats tracking, and auto-start options
Generate Certificate Signing Requests (CSR) for SSL/TLS certificates with RSA key pairs. Submit to CAs for certificate issuance
Calculate IPv4 and IPv6 subnet details instantly with our comprehensive Subnet Calculator that handles CIDR notation, network addresses, broadcast addresses, and host ranges. Network administrators and IT professionals need to quickly determine subnet masks, calculate available host addresses, and verify IP address ranges for proper network configuration. This tool eliminates complex manual calculations by instantly providing network address, broadcast address, usable host range, subnet mask, wildcard mask, and binary representations for both IPv4 and IPv6 addresses. Whether you're planning network subnets for infrastructure expansion, configuring routers and firewall rules, designing VLANs, or troubleshooting connectivity issues, this calculator provides precise calculations in seconds. The visual CIDR slider and multiple input methods make it intuitive to experiment with different subnet configurations and understand how CIDR notation affects network sizing.
Calculate IP ranges for growing networks, determining how many subnets and hosts are available when subdividing address space.
Determine subnet masks and address ranges needed for proper router configuration, firewall rules, and network segmentation.
Quickly convert between CIDR notation and traditional subnet mask format for compatibility with legacy systems and documentation.
Determine how many usable hosts a subnet supports, helping right-size subnets and avoid IP exhaustion.
Verify that IP addresses are in the correct subnet range when diagnosing connectivity issues and routing problems.
Work with IPv6 CIDR notation to manage next-generation network addressing and understand expanded address space.
IP addressing is the foundational addressing system of the internet, and subnetting is the practice of dividing a larger network into smaller, more manageable segments. Every device on a network receives an IP address, which consists of two parts: the network portion that identifies which network the device belongs to, and the host portion that identifies the specific device within that network. The subnet mask determines where this boundary falls, and understanding this division is essential for network design, routing, and security.
Historically, IP addresses were divided into rigid classes. Class A networks (first octet 1-126) used an 8-bit network prefix and could contain over 16 million hosts. Class B networks (128-191) used 16 bits for the network and supported 65,534 hosts. Class C networks (192-223) used 24 bits and allowed only 254 hosts. This classful system was enormously wasteful because organizations received far more addresses than they needed. An organization needing 300 addresses would receive an entire Class B allocation of 65,534 addresses, leaving tens of thousands unused.
Classless Inter-Domain Routing (CIDR), introduced in 1993 through RFC 1518 and RFC 1519, replaced this rigid system with variable-length subnet masks. CIDR notation appends a prefix length to the IP address (e.g., 192.168.1.0/24), indicating exactly how many bits form the network portion. This allows networks to be sized precisely to requirements. A /25 gives 126 usable hosts, a /26 gives 62, and a /27 gives 30. The mathematics of subnetting involves binary operations: the subnet mask is a contiguous sequence of 1-bits followed by 0-bits, and the network address is derived by performing a bitwise AND between the IP address and the subnet mask. The broadcast address is found by setting all host bits to 1.
IPv6 dramatically expands the address space from 32 bits to 128 bits, providing approximately 340 undecillion unique addresses. While IPv6 eliminates the address exhaustion problem that drove much of IPv4 subnetting complexity, subnetting remains important for network organization and security segmentation. IPv6 subnets typically use a /64 prefix for local networks, with the remaining 64 bits available for host addressing through Stateless Address Autoconfiguration (SLAAC). The wildcard mask, used primarily in access control lists on Cisco routers, is the bitwise inverse of the subnet mask and defines which bits in an address should be matched (0) versus ignored (1) when evaluating network rules.
CIDR (Classless Inter-Domain Routing) uses a suffix like /24 to indicate how many bits are the network portion. /24 = 255.255.255.0 netmask.
For IPv4 subnets larger than /31, the first IP is the network address and the last is broadcast, leaving 2 fewer usable host addresses.
All processing happens directly in your browser. Your files never leave your device and are never uploaded to any server.