Free Subnet & IP Network Tools

Calculate subnets, convert IP addresses, check CIDR ranges, and estimate bandwidth. All tools run in your browser.

Quick Answer

Subnet hosts = 2(32−prefix) − 2. CIDR notation: 192.168.1.0/24

Example: /24 subnet → 28 − 2 = 254 usable hosts. /16 → 65,534 hosts.

Choose a Category

🌐 Subnet 5 tools Calculate subnets, CIDR notation, network ranges, and supernets. 📡 IP Tools 5 tools Convert, classify, and analyze IP addresses in multiple formats. 📊 Bandwidth 5 tools Calculate bandwidth, transfer times, throughput, and data unit conversions.

What Is a Subnet Calculator?

A subnet calculator is an online tool that divides IP address spaces into smaller, manageable sub-networks (subnets) based on CIDR notation, subnet masks, or the number of required hosts. Subnetting is a fundamental networking skill used by network engineers, system administrators, and cloud architects to design efficient, secure, and scalable IP address schemes. Rather than manually converting between binary and decimal or counting host bits by hand, a subnet calculator automates the entire process instantly.

Every IPv4 address is a 32-bit number divided into a network portion and a host portion by the subnet mask. CIDR notation (like /24 or /27) specifies how many bits are allocated to the network portion. A /24 subnet provides 256 addresses (254 usable hosts), while a /27 provides 32 addresses (30 usable hosts). Choosing the right subnet size minimizes wasted IP addresses and provides logical network segmentation for security -- isolating departments, guest networks, IoT devices, or DMZs into separate broadcast domains.

SubnetCalc offers fifteen tools across three categories: Subnet tools (subnet calculator, CIDR to subnet mask, IP range calculator, wildcard mask, and supernet calculator), IP tools (IP address converter, IPv4 to IPv6, IP class checker, binary to IP, and IP-in-range checker), and Bandwidth tools (bandwidth calculator, download time estimator, and data unit converter). All calculations run entirely in your browser with no data transmitted to any server.

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation represents an IP address and its associated network prefix length. For example, 192.168.1.0/24 means the first 24 bits are the network address and the remaining 8 bits are for host addresses, giving 256 total addresses (254 usable). CIDR replaced the old classful addressing system (Class A/B/C) to allow more flexible allocation of IP space.

How many usable hosts does each subnet size have?

The formula is 2^(32 - prefix length) - 2. You subtract 2 because the first address is the network address and the last is the broadcast address. Common examples: /24 = 254 hosts, /25 = 126 hosts, /26 = 62 hosts, /27 = 30 hosts, /28 = 14 hosts, /29 = 6 hosts, /30 = 2 hosts (point-to-point links).

What is the difference between a subnet mask and a wildcard mask?

A subnet mask uses 1-bits for the network portion and 0-bits for the host portion (e.g., 255.255.255.0). A wildcard mask is the bitwise inverse -- 0-bits match and 1-bits are "don't care" (e.g., 0.0.0.255). Wildcard masks are commonly used in Cisco ACLs and OSPF configurations. To convert, subtract each octet of the subnet mask from 255.

What are private IP address ranges?

RFC 1918 defines three private IP ranges that are not routable on the public internet: 10.0.0.0/8 (16.7 million addresses), 172.16.0.0/12 (1 million addresses), and 192.168.0.0/16 (65,536 addresses). These are used inside organizations and home networks, with NAT (Network Address Translation) providing internet access through a single public IP.

How do I convert IPv4 to IPv6?

The simplest method is the IPv4-mapped IPv6 address format: prefix the IPv4 address with ::ffff:. For example, 192.168.1.1 becomes ::ffff:192.168.1.1 or in full hex notation ::ffff:c0a8:0101. This format allows IPv6-enabled applications to communicate with IPv4 hosts during the transition period between protocols.

About SubnetCalc

SubnetCalc provides essential subnet and IP network tools that run entirely in your browser. Calculate subnets from CIDR notation, convert IP addresses between formats, check IP ranges, and estimate bandwidth requirements. No data ever leaves your machine.

Why SubnetCalc?

How Subnetting Works

Subnetting divides a large IP network into smaller, more manageable segments. Every IPv4 address is a 32-bit number written as four octets (e.g., 192.168.1.0). The subnet mask determines which bits identify the network and which identify individual hosts within that network.

Binary Foundation: Consider the address 192.168.1.0/24. The /24 means the first 24 bits are the network portion, leaving 8 bits for hosts. In binary, the subnet mask 255.255.255.0 is 11111111.11111111.11111111.00000000 — ones for network bits, zeros for host bits. The number of usable hosts is 2(32−prefix) − 2, subtracting the network address (all host bits 0) and the broadcast address (all host bits 1).

Choosing the Right Subnet Size: The key decision in network design is matching subnet size to actual need. A /24 provides 254 hosts — suitable for a typical office floor. A /28 provides 14 hosts — ideal for a small server VLAN or a DMZ. A /30 provides just 2 hosts — used for point-to-point links between routers. Over-allocating wastes IP addresses; under-allocating requires future re-addressing, which is operationally expensive.

VLSM (Variable Length Subnet Masking): Modern networks use VLSM to assign different subnet sizes to different segments within the same address block. A company with a /22 (1,022 hosts) might carve it into several /24s for user VLANs, /27s for printer networks, /28s for management VLANs, and /30s for router interconnects. This hierarchical approach maximizes address utilization while maintaining logical segmentation for security and traffic management.

Supernetting (CIDR Aggregation): The reverse of subnetting, supernetting combines multiple smaller networks into a single larger prefix for route summarization. For example, four contiguous /24 networks (192.168.0.0 through 192.168.3.0) can be advertised as a single /22 route, reducing routing table size and improving router performance.

Related Tools