About the CIDR / Subnet Calculator
Planning a VPC, writing a firewall rule or reading a Kubernetes pod CIDR? Enter an address with a prefix (10.0.0.0/16) or a dotted mask (192.168.0.1 255.255.252.0) to get the network and broadcast addresses, masks, usable host range and counts. Split the block into smaller subnets and check whether a given IP falls inside.
Features
- IPv4 and IPv6
- Prefix or dotted subnet mask input
- Network, broadcast, wildcard, host range
- RFC 1918 / CGNAT / loopback detection
- Binary view of address and mask
- Subnet splitting
- IP-in-range check
How to use it
- Enter an IP with prefix or mask.
- Read the computed network details.
- Split the network or check an IP against it.
Frequently asked questions
How many hosts are in a /24?
256 addresses, of which 254 are usable hosts (network and broadcast addresses are reserved). Cloud providers often reserve a few more — AWS reserves 5 per subnet.
What about /31 and /32?
A /31 has two usable addresses for point-to-point links (RFC 3021); a /32 is a single host.