01What is CIDR Calculator?
CIDR Calculator takes an IPv4 block written in CIDR notation, such as 192.168.1.0/24, and tells you everything that block contains. You get the network address, broadcast address, first and last usable addresses, usable host count, total address count, subnet mask, wildcard mask, prefix and legacy address class. Every value has its own copy button, so you can paste it straight into a firewall rule or a Terraform file. Under the hood it is plain 32-bit integer math. The address is packed into one unsigned number and the prefix becomes a mask with that many leading one bits. A bitwise AND with the mask gives the network address. OR-ing the network with the inverted mask, which is also the wildcard mask, gives the broadcast address. The notation itself comes from RFC 4632, the document that defines Classless Inter-Domain Routing. Here is a typical case. Type 192.168.1.77/26 and the tool notices that host bits are set. It reports the real network, 192.168.1.64, with a broadcast of 192.168.1.127. Usable addresses run from 192.168.1.65 to 192.168.1.126, which is 62 hosts out of 64 addresses. The mask is 255.255.255.192 and the wildcard is 0.0.0.63, the form Cisco ACLs and OSPF network statements expect. Most prefixes follow the usual rule of total addresses minus two. The two smallest ones do not. A /31 follows RFC 3021, which allows both addresses on a point-to-point link, so you see two usable hosts and no wasted broadcast. A /32 is a single host, the shape you use for loopbacks and one-address firewall entries. The address class field is kept for people who still read older docs. It looks only at the first octet: A below 128, B below 192, C below 224, then D for multicast and E for reserved. Classes have not affected routing since CIDR replaced them, so treat it as a label, not advice. There are honest limits. The tool handles IPv4 only, and an IPv6 prefix shows an error. It does not split a block into smaller subnets or merge blocks into a summary route. It also does not know about cloud provider reservations. AWS, for example, keeps five addresses in every VPC subnet, so a /24 there gives you fewer hosts than the calculator shows. Quick buttons for /8, /16, /24, /28 and /32 load common blocks if you just want to look around.
Cloud and network engineers who carve VPC subnets, write firewall rules or configure router ACLs and want the exact address math before they commit a change. The tool runs entirely in your browser, so your data never leaves your device.
02How to use CIDR Calculator
- Type an IPv4 block into the CIDR Notation box, for example 10.0.0.0/16, or click one of the Common Subnets buttons.
- If you see a red error, check the format: four octets from 0 to 255, a slash, and a prefix from 0 to 32.
- Read Network Address, Broadcast Address, First Usable IP and Last Usable IP.
- Check Total Usable Hosts and Total Addresses to size the block, and Subnet Mask or Wildcard Mask for device configs.
- Click the copy icon next to any row to put that value on your clipboard.
03Worked examples
- Input:
192.168.1.0/24 - Result:
Network 192.168.1.0 · broadcast 192.168.1.255 · usable 192.168.1.1 to 192.168.1.254 · 254 usable of 256 · mask 255.255.255.0 · wildcard 0.0.0.255 · class C - Input:
192.168.1.77/26 - Result:
Network 192.168.1.64 · broadcast 192.168.1.127 · usable 192.168.1.65 to 192.168.1.126 · 62 usable of 64 · mask 255.255.255.192 · wildcard 0.0.0.63 - The address has host bits set, so the tool reports the network it belongs to.
- Input:
10.0.0.0/8 - Result:
Mask 255.0.0.0 · wildcard 0.255.255.255 · 16,777,216 addresses, 16,777,214 usable · broadcast 10.255.255.255 · class A - Input:
172.16.5.10/30 - Result:
Network 172.16.5.8 · usable 172.16.5.9 to 172.16.5.10 · broadcast 172.16.5.11 · mask 255.255.255.252 - A /30 is the classic router link size: 4 addresses, 2 usable.
- Input:
10.1.2.3/31 - Result:
Network 10.1.2.2 · 2 addresses, both usable: 10.1.2.2 and 10.1.2.3 · mask 255.255.255.254 - RFC 3021 lets a /31 point-to-point link use both addresses. The Broadcast Address row reads None (RFC 3021 point-to-point).
- Input:
203.0.113.7/32 - Result:
Mask 255.255.255.255 · wildcard 0.0.0.0 · 1 address: 203.0.113.7 - A /32 is a single host, as used in firewall rules and loopback routes.
04Common use cases
- Checking that a new AWS, Azure or Google Cloud subnet like 10.20.4.0/22 holds enough addresses for an autoscaling group before you apply the Terraform plan
- Finding the real network for an address someone pasted with host bits set, such as 192.168.1.77/26, before it goes into a route table
- Getting the wildcard mask for a Cisco ACL or OSPF network statement without inverting the subnet mask by hand
- Confirming the first and last usable address of a range when writing a firewall allow rule or a DHCP pool
- Sizing point-to-point links between routers, where a /31 saves two addresses per link compared with a /30
- Explaining to a teammate why a /28 gives 14 hosts and not 16 during a network review
05Tips
- If you paste an address with host bits set, read the Network Address row. Many routers and cloud APIs reject 10.1.2.3/24 and want 10.1.2.0/24.
- AWS reserves 5 IPs in every VPC subnet (network, router, DNS, future use and broadcast), so a /24 gives you 251 usable addresses there, not 254.
- To split a block, add bits to the prefix. A /16 holds 256 /24s, and each extra bit halves the subnet size and doubles the count.
- Pick non-overlapping ranges from the start. Overlapping CIDRs block VPC peering and make site-to-site VPNs need NAT.
- The wildcard mask is just the subnet mask with every bit flipped, so 255.255.255.240 becomes 0.0.0.15.
06Related concepts
Subnet mask, VLSM, Supernetting, Network segmentation.
Frequently Asked Questions
What is CIDR Calculator?
CIDR Calculator is a free, browser-based developer tool on AIDToolStack. Calculate subnet mask, network range, usable hosts, and broadcast address from CIDR notation It requires no installation or sign-up and works entirely in your browser.
Is CIDR Calculator free to use?
Yes. No sign-up, no fees and no usage cap.
Does CIDR Calculator store my data?
No. It runs in your browser; nothing is uploaded.