Developer · CIDR

IPv4 CIDR Block & Subnet Mask Calculator

Enter any IPv4 CIDR notation (like 10.0.0.0/16 or 192.168.10.42/24) to inspect exact network boundaries, usable host counts, broadcast IP, wildcard ACL mask, and binary netmask.

✓ 100% Browser-Local · Zero Upload Reviewed: 2026-11-26

Initializing local browser workspace...

Plan Cloud VPC Subnets and Firewall Rules Accurately

Misjudging CIDR subnet boundaries causes overlapping AWS VPC peering blocks, misconfigured UFW/iptables allowlists, or exhausted Kubernetes pod IP pools. This calculator computes exact 32-bit network masks immediately in your browser.

  • Exact 32-bit unsigned bitwise IPv4 CIDR calculation from /0 down to /32 host routes
  • Displays network address, broadcast address, and exact first-to-last usable host range
  • Generates Cisco/firewall wildcard mask and 32-bit binary subnet mask representation
  • Automatically identifies RFC 1918 private networks, loopback, link-local, and public ranges
  • Handles RFC 3021 /31 point-to-point links and /32 single-host routes accurately
  • One-click summary copy for VPC planning tickets, Terraform configs, and firewall rules

Step-by-Step Guide

  1. Type any IPv4 address with slash prefix (e.g. 172.16.0.0/20 or 203.0.113.10/28) or click one of the quick CIDR presets.
  2. Inspect the four top KPI cards for Network CIDR, Subnet Mask, Usable Host Count, and Broadcast IP.
  3. Review the full technical breakdown for First/Last Usable Host, Wildcard Mask, Binary Netmask, and Private vs. Public scope.
  4. Click Copy Summary to paste the verified subnet table into runbooks or pull requests.

Common IPv4 Subnetting Mistakes

Forgetting Cloud Provider Reserved IPs Inside VPC Subnets

While standard Ethernet reserves 2 addresses (network and broadcast), AWS, GCP, and Azure reserve 5 IP addresses per subnet—shrinking a /28 from 14 to just 11 usable instances.

Using Overlapping 192.168.1.0/24 Blocks on Corporate VPNs

Home routers overwhelmingly use 192.168.0.0/24 and 192.168.1.0/24. Choosing less common 10.x or 172.20+ blocks prevents routing conflicts for remote employees.

Entering a Non-Zero Host IP in Firewall Rules

Many firewalls reject 192.168.10.42/24 and require the normalized network ID 192.168.10.0/24. Always copy the computed Network CIDR field.

Networking, Cloud & VPS Operations

  • Sizing AWS VPC, Docker bridge networks, and WireGuard VPN address pools without IP overlap.
  • Writing accurate Nginx allow/deny directives and UFW/iptables CIDR firewall allowlists.
  • Converting dotted subnet masks and wildcard masks for router ACLs and certification study.

Frequently Asked Questions

Why does a /24 subnet have 254 usable hosts instead of 256?

The first address (.0) identifies the network itself and the last address (.255) is reserved for subnet broadcast traffic, leaving 254 assignable host IPs (.1 through .254).

What is a wildcard mask used for?

A wildcard mask is the bitwise inverse of a subnet mask (e.g. 0.0.0.255 for /24) used by Cisco IOS ACLs and OSPF routing definitions to match IP ranges.

What are the official RFC 1918 private IPv4 ranges?

The three private ranges are 10.0.0.0/8, 172.16.0.0/12 (172.16.0.0–172.31.255.255), and 192.168.0.0/16.

Local Privacy Guarantee: CIDR calculations execute purely inside local browser JavaScript; your internal network topology is never transmitted.