CIDR / Subnet Calculator
Runs in your browserEnter an IPv4 CIDR block to get its network address, broadcast address, netmask, and usable host range.
Network address
192.168.1.0Broadcast address
192.168.1.255Netmask
255.255.255.0Wildcard mask
0.0.0.255First usable host
192.168.1.1Last usable host
192.168.1.254Total addresses
256Usable hosts
254About this tool
CIDR notation (e.g. 192.168.1.0/24) packs an IP address and subnet size into one string, but reading off the actual usable range takes a bit of binary arithmetic — the network address, the broadcast address, and everything in between. This tool does that arithmetic directly, including the two special cases most calculators get wrong: /31 point-to-point links and /32 single hosts, where the usual "reserve the first and last address" rule doesn't apply.
How to use
- Enter a CIDR block, e.g. 10.0.0.0/24.
- If you enter a host address rather than the network address, it's normalised down automatically.
- Read off the network, broadcast, netmask, and usable host range.
When to use this tool
- Planning subnet sizes before configuring a VPC, VLAN, or firewall rule.
- Checking how many usable hosts a given prefix length actually provides.
- Verifying a colleague's subnet plan doesn't overlap with an existing one.
Tips
- /31 subnets (RFC 3021) are a special case for point-to-point links — both addresses are usable, with no network or broadcast address reserved.
- /32 is a single host route — the network, broadcast and host address are all the same.
Limitations
- IPv4 only — IPv6 prefixes are not supported.
FAQ
- Does this support IPv6?
- No — IPv4 only. IPv6 prefix arithmetic works differently enough that it deserves its own dedicated tool.
- Is my input sent anywhere?
- No. Every calculation runs in your browser.