Netmask, CIDR, wildcard mask, and usable range
All computation runs locally in your browser

The IPv4 Subnet Calculator takes an IPv4 address like 192.168.24.0/24 and outputs the network block details: netmask, wildcard mask, network size, first/last usable host, and broadcast address.
What problems it solves
Quickly answer: “What’s the usable range?”, “What’s the broadcast?”, “Is this a /27 or /28?”, and “How many addresses do I get?”
Who it’s for
Network engineers, IT admins, students, and developers configuring VPNs, firewalls, routers, cloud subnets, or lab environments.
Why the results are reliable
The calculator uses the same address parsing and subnet math found in the original it-tools tool. Everything runs locally in your browser, so your inputs are not sent to a server.
If you’re also working with URLs, tokens, or headers, pairing this with our URL parser or Basic auth generator can speed up day-to-day troubleshooting.
Worked example (with steps)
Suppose you have 192.168.24.0/24. A means 24 network bits and host bits.
That means the block contains 256 total addresses. In a typical subnet, the network address is 192.168.24.0 and the broadcast is 192.168.24.255. The calculator also shows the commonly used “usable host” range: 192.168.24.1 to 192.168.24.254.
How to interpret the results
Network mask
The dotted-quad mask (for example 255.255.255.0) derived from the CIDR prefix length.
Wildcard mask
The inverse of the network mask, often used in ACL rules.
First / last address
The range of addresses typically used for hosts (note: some environments treat these differently).
Router/VPN subnet planning
Background: You need a small subnet for a site-to-site VPN.
Input: 10.20.30.0/27.
Result: Network size is addresses; the calculator shows the usable range and broadcast.
Application: Use the first few IPs for the VPN gateway, monitoring, and reserved infrastructure.
Lab environment IP ranges
Background: You want a predictable private range for VMs.
Input: 192.168.56.0/24.
Result: total addresses; common usable range is 192.168.56.1 to 192.168.56.254.
Application: Reserve low addresses for services, keep the rest for VMs.
Firewall ACL wildcard masks
Background: You need an ACL rule that matches a subnet.
Input: 172.16.8.0/21.
Result: The calculator provides the wildcard mask, which many ACL syntaxes require.
Application: Copy the wildcard mask directly into your rule, then share the link with teammates for review.
Troubleshooting “wrong network” issues
Background: A device is configured as 192.168.1.130/25 and can’t reach a host you expected.
Input: 192.168.1.130/25.
Result: The network block starts at 192.168.1.128, not 192.168.1.0.
Application: Fix the mask or move the IP into the subnet where the gateway lives.
Related tool
If your troubleshooting starts from a URL (for example, a service endpoint), parse it first with our URL parser to extract the hostname/port cleanly.
Splitting a /24 into smaller blocks
Walk through /25, /26, /27 blocks using Next/Previous block to see boundaries.
Writing ACL rules
Use wildcard masks and network ranges to match exactly the traffic you intend.
Allocating IPs to services
Pick a subnet size that comfortably fits hosts, plus headroom.
Sanity-checking CIDR math
Confirm a prefix length corresponds to the range you think it does.
Verifying network vs host bits
Understand why /30 behaves differently (point-to-point) compared to /24.
Debugging “can’t reach gateway”
Check whether an IP actually falls inside the gateway’s subnet.
When it may not apply
Some platforms treat the first/last addresses differently (for example, special reserved addresses in certain cloud providers). Use the calculator as a baseline, then confirm your platform’s rules.
Prefer CIDR notation (like /24) when documenting networks; it’s unambiguous and compact.
Use Next/Previous block to find the exact boundary where your subnet starts and ends.
If you’re writing ACLs, copy the wildcard mask directly to avoid off-by-one errors.
When you need N hosts, plan for growth: pick a subnet that provides headroom.
Share the calculator link with results enabled to align on the same subnet during reviews.
Let the prefix length be (for example, ). IPv4 has bits total.
The network address is the bitwise AND of the IP and the mask:
The broadcast address (when applicable) is:
The wildcard mask is the bitwise NOT of the network mask:
For typical subnets with , the “usable host” range is often reported as:
Variable meanings
CIDR is a way to express the mask as a prefix length (like ). A smaller prefix length means a larger subnet.
IP classes (A/B/C/D/E) are a historical concept tied to the first octet. Modern networks mainly use CIDR, but class can still be useful as quick context.
Yes. If you omit the mask, the calculator assumes .
For very small masks (for example or ), the notion of broadcast/usable hosts may not apply the same way as larger subnets.
It’s the inverse of the network mask. If the mask is 255.255.255.0, the wildcard is 0.0.0.255.
Often yes for traditional subnets, but rules can differ by platform. Treat it as a helpful default and confirm any reserved-address policies.
Use the Share button and enable “share calculator with results”. It generates a link with your input encoded.
This calculator focuses on IPv4 subnet math. It doesn’t model vendor-specific behaviors, routing policies, or platform-reserved addresses. Always validate changes in a safe environment before applying them to production.
Use a simple chronometer (stopwatch) to track elapsed time down to milliseconds. Runs locally in your browser.
Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning. Runs locally in your browser.
Estimate the time needed to consume a total amount at a constant rate, and get an expected end time. Runs locally in your browser.
Parse and decode your JSON Web Token (JWT) and display its content. All computation runs locally in your browser.
Know which file extensions are associated to a MIME type, and which MIME type is associated to a file extension. Includes a full MIME types table.
Generate random Lorem Ipsum placeholder text with customizable paragraphs, sentences, and word counts. Runs locally in your browser.