Home › CIDR / Subnet Calculator — Free Online Tool | Wgajaa
🌐 CIDR / Subnet Calculator
Expand CIDR blocks into ranges, masks and usable hosts. Free, private and instant — nothing you enter is sent anywhere.
About this tool
Expand any CIDR block into the full set of network details: network address, broadcast address, subnet mask in dotted and wildcard form, the first and last usable host addresses, and the count of usable hosts. Paste something like 192.168.1.0/24 and everything else fills in instantly.
CIDR notation compresses an address and its prefix length into one string, but planning firewall rules, VPC subnets or DHCP scopes requires the expanded view. This calculator works with any IPv4 prefix from /0 to /32 and validates the input strictly — a malformed address or an out-of-range prefix is reported instead of silently producing nonsense. Host counts follow networking convention: the network and broadcast addresses are excluded from the usable pool, except for /31 and /32 blocks, which RFC 3021 and practical routing treat as point-to-point and single-host cases.
How this tool works
Everything runs locally in your browser — no data is sent to any server. Here is exactly how it works:
- Type or paste a CIDR block such as 10.0.0.0/16
- The three cards show usable hosts, total addresses and the mask
- The table lists network, broadcast, wildcard and host range
- Invalid input is flagged with a specific message — nothing is guessed
- Copy values straight into firewall, VPC or DHCP configuration
Frequently Asked Questions
The prefix length: the first 24 bits of the address are the network portion, leaving 8 host bits. That yields 256 total addresses and 254 usable hosts after removing the network and broadcast addresses.
The first address identifies the network itself and the last is reserved for broadcast. Neither can be assigned to a device. The exceptions are /31 links, where both addresses are usable per RFC 3021, and /32, which is a single host route.
65,534 usable hosts (65,536 total). Each additional prefix bit halves the block, so /17 is about 32k hosts and /15 about 131k. Roughly: every bit from /24 to /16 multiplies capacity by two.
It is the bitwise inverse of the subnet mask and appears in access control lists on routers and firewalls — 0.0.0.255 matches the last octet freely, for example. This page derives it from your prefix automatically.
No — this tool covers IPv4 only. IPv6 subnets are usually planned in /64 chunks where the host math is trivial; the interesting decisions are allocation and aggregation, not host counts.