Free online subnet mask calculator with IPv4 subnetting, VLSM division, supernet aggregation, IP range validation, and base conversion. Real-time local processing.
| Name | Network | CIDR | Subnet Mask | Usable IP Range | Broadcast | Hosts |
|---|
| Class | Address Range | CIDR | Mask |
|---|---|---|---|
| Private (Class A) | 10.0.0.0 ~ 10.255.255.255 | /8 | 255.0.0.0 |
| Private (Class B) | 172.16.0.0 ~ 172.31.255.255 | /12 | 255.240.0.0 |
| Private (Class C) | 192.168.0.0 ~ 192.168.255.255 | /16 | 255.255.0.0 |
| Loopback | 127.0.0.0 ~ 127.255.255.255 | /8 | 255.0.0.0 |
| Link-Local | 169.254.0.0 ~ 169.254.255.255 | /16 | 255.255.0.0 |
Enter IP and CIDR/mask for real-time calculation of network address, broadcast address, usable host range, wildcard mask, IP class and private address detection
Supports equal-split mode and custom VLSM division, automatically calculates each subnet's network address, mask, usable IP range and broadcast address
Input multiple networks, automatically calculates the smallest covering supernet, flags exact vs. inexact aggregation for route summarization
Quickly verify whether an IP belongs to a specified network, displays detailed subnet information, assists network configuration troubleshooting
All calculations run locally in your browser, no server upload needed, results appear on input, protecting privacy
Use the top tabs to switch to the desired function: Basic Subnet Calc, VLSM Division, Route Aggregation, IP Range Check, or Auxiliary Tools
Enter the IP address and CIDR prefix (e.g. /24) or subnet mask (e.g. 255.255.255.0) in the input fields; the system auto-detects both formats
After input, the system automatically calculates and displays network address, broadcast address, host count and other complete subnet information — no button click needed
Click results to copy directly; VLSM division results are displayed in table format for viewing each subnet's detailed information
Quickly calculate subnet division schemes for enterprise network architecture design, determine usable IP ranges and network boundaries
Verify IP membership and network ranges when configuring firewall rules and routing tables to avoid configuration errors
Auxiliary tool for computer network course labs, helping students understand subnet division, VLSM and CIDR principles
Calculate CIDR ranges and usable IP counts when configuring subnets on AWS VPC, Alibaba Cloud VPC and other cloud platforms
Troubleshoot IP conflicts, network configuration errors and other network issues, quickly locate IP membership and subnet boundaries
A subnet mask is a 32-bit binary number used to distinguish the network portion and host portion of an IP address. Bits set to 1 in the mask correspond to network bits, and bits set to 0 correspond to host bits. For example, 255.255.255.0 means the first 24 bits are network bits and the last 8 bits are host bits.
CIDR (Classless Inter-Domain Routing) represents a network using "IP/prefix length", e.g. 192.168.1.0/24 indicates the first 24 bits are network bits. CIDR replaces traditional Class A/B/C classification, enabling more flexible subnetting.
VLSM (Variable Length Subnet Mask) allows using different subnet mask lengths within the same network, allocating network segments of different sizes based on each subnet's actual host demand, reducing IP address waste.
Route aggregation (supernetting) merges multiple consecutive small networks into a larger network to reduce the number of routing table entries. For example, 192.168.0.0/24 and 192.168.1.0/24 can be aggregated into 192.168.0.0/23.
Network Address = IP Address AND Subnet Mask
Perform bitwise AND between the IP address and the subnet mask to obtain the network address.
Broadcast Address = Network Address OR Wildcard Mask
Perform bitwise OR between the network address and the wildcard mask (inverted mask).
Usable Hosts = 2^(32-CIDR) - 2
Subtracts two reserved addresses: network address and broadcast address. /31 is special-cased to 2 per RFC 3021.
Wildcard Mask = ~Subnet Mask
Bitwise NOT of the subnet mask, used for ACL configuration and broadcast address calculation.