Subnet Calculator
Type an IPv4 or IPv6 address with a prefix or mask, or a range of addresses. The network, usable hosts, broadcast, masks and address type appear as you type.
Examples:
Split this block
How the numbers are worked out
- Usable hosts in IPv4 leave out the first address (the network) and the last (the broadcast). A /31 is the exception: both of its two addresses are usable on a point-to-point link (RFC 3021), and a /32 is one single address.
- IPv6 has no broadcast address, so the range runs from the first address of the block to the last.
- Masks: 255.255.255.0 and /24 mean the same thing. A wildcard mask such as 0.0.0.255, as used in Cisco access lists, is read the other way round, and the page says so.
- Ranges: a range such as 10.0.0.5 - 10.0.0.20 is turned into the fewest CIDR blocks that cover exactly those addresses.
- Every result is checked in our tests against Python's ipaddress module, on 700 random blocks, 210 ranges and 60 splits. Nothing you type leaves your browser.