Enter an IPv4 address with a CIDR prefix or a subnet mask and get the network address, broadcast address, usable range, host count, wildcard mask and the binary breakdown. Everything is computed in your browser.
- Network address
- —
- Broadcast address
- —
- First usable host
- —
- Last usable host
- —
- Usable hosts
- —
- Total addresses
- —
- Subnet mask
- —
- Wildcard mask
- —
- CIDR
- —
- Address class
- —
- Type
- —
- Integer value
- —
How the calculator works
An IPv4 address is 32 bits. The prefix length says how many of those bits identify the network; the rest identify hosts within it. The calculator converts your address and prefix to binary, applies the mask with a bitwise AND to find the network address, fills the host bits with ones to find the broadcast address, and counts the addresses in between. Enter a mask such as 255.255.255.192 instead of a prefix and it converts it for you.
Common prefixes at a glance
| Prefix | Mask | Total | Usable | Typical use |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | The whole 10.0.0.0 private range |
| /16 | 255.255.0.0 | 65,536 | 65,534 | A large campus or the whole 192.168 range |
| /24 | 255.255.255.0 | 256 | 254 | A home or small-office LAN |
| /25 | 255.255.255.128 | 128 | 126 | Half of a /24 |
| /26 | 255.255.255.192 | 64 | 62 | A quarter of a /24 |
| /27 | 255.255.255.224 | 32 | 30 | A small VLAN |
| /28 | 255.255.255.240 | 16 | 14 | A handful of servers |
| /30 | 255.255.255.252 | 4 | 2 | Router-to-router link |
| /31 | 255.255.255.254 | 2 | 2 | Point-to-point link (RFC 3021) |
| /32 | 255.255.255.255 | 1 | 1 | A single host route |
Background on private ranges and special addresses is on the IP addresses page. To find the address of the router that hands out your subnet, see how to find your router IP.