Calculate network details from any IP address and CIDR prefix. Pure client-side.
Networking · IPv4 · subnets
Calculate IPv4 network address, broadcast, subnet mask, and usable host range from an IP address and CIDR prefix. Plan VPC blocks and firewall rules with client-side math — no account, no upload.
CIDR (Classless Inter-Domain Routing) writes a network as address/prefix, for example 10.0.0.0/24. The prefix length is the number of leading 1-bits in the subnet mask. /24 means 255.255.255.0 and 256 addresses (254 usable hosts on a classic LAN, after network and broadcast). /32 is a single host; /16 is a large private block often sliced into smaller subnets in cloud VPCs.
| Prefix | Mask | Addresses | Typical use |
|---|---|---|---|
/32 | 255.255.255.255 | 1 | Single host route |
/31 | 255.255.255.254 | 2 | Point-to-point links (RFC 3021) |
/30 | 255.255.255.252 | 4 | Legacy P2P, small links |
/28 | 255.255.255.240 | 16 | Small app subnet |
/24 | 255.255.255.0 | 256 | Common LAN / AZ slice |
/16 | 255.255.0.0 | 65 536 | Large private allocation |
Cloud tip: AWS, GCP, and Azure reserve extra addresses in each subnet beyond the classic network/broadcast picture. Always leave headroom and read your provider’s “usable IPs per CIDR” table before packing instances tightly.
Input: 192.168.1.100 / 24
Network: 192.168.1.0
Broadcast: 192.168.1.255
Mask: 255.255.255.0
Hosts: 192.168.1.1 – 192.168.1.254 (typical usable)
The host 192.168.1.100 sits inside that network; the calculator normalizes to the block boundaries.
10/8, 172.16/12, 192.168/16) is not routable on the public Internet.This calculator focuses on IPv4 CIDR. IPv6 uses much larger prefixes (often /64 for LANs) and different operational norms.
No. It only does arithmetic in the browser from the values you type.
On traditional Ethernet LANs yes for /24-style subnets; special cases like /31 and cloud provider rules differ. Check the environment you deploy into.