NETWORK TOOL
CIDR Calculator
Analyze IP addresses and subnet masks. Calculate network details, host counts, usable ranges, and binary representations for IPv4 and IPv6 networks.
Network Subnet Details
| Network Address | 192.168.1.0 |
| Broadcast Address | 192.168.1.255 |
| Wildcard Mask | 0.0.0.255 |
| Total Host IPs | 256 |
| Usable Host IPs | 254 |
Binary Representation
11000000.10101000.00000001.00000001
11111111.11111111.11111111.00000000
11000000.10101000.00000001.00000000
Subnet Divisions (Splits)
Split this range into smaller subnets.
Audit & Export Data
Export these subnet parameters for network configurations or scripts.
Understanding CIDR & Subnetting
IP subnetting is a core pillar of modern networking, enabling administrators to divide larger blocks of IP addresses into smaller, separate subnetworks. This process controls broadcast domains, secures traffic, and optimizes network routing paths.
What is CIDR?
Historically, IP addresses were divided into strict classes (Class A, Class B, Class C) that allocated set block sizes. This was highly inefficient: a business requiring 300 IP addresses was forced to lease a Class B block containing over 65,000 addresses, wasting the remainder.
Classless Inter-Domain Routing (CIDR) solves this by allowing subnet mask boundaries to reside at any bit position rather than octet boundaries. CIDR uses a compact slash notation like 192.168.1.0/24, where the number after the slash indicates how many bits are dedicated to the network prefix.
Calculating a Subnet
To calculate the size of an IPv4 subnet from its CIDR prefix:
- Total Hosts: Calculated as
2^(32 - Prefix). For `/24`, it is 2^(32 - 24) = 256. - Usable Hosts: In most subnets, the first address is reserved as the Network IP, and the last address is reserved as the Broadcast IP. Thus, usable hosts are
Total - 2. - Wildcard Mask: This mask is the bitwise inverse of the netmask. For netmask
255.255.255.0, the wildcard is0.0.0.255.
IPv6 Subnetting
IPv6 expands the address space to 128 bits. The notation is similar to IPv4, but the prefix is typically much larger (standard residential allocations are `/48` or `/56`, while individual subnets inside networks are almost always `/64`). Because IPv6 has a massive address space, broadcast addresses do not exist; instead, multicast and anycast routing are used.