Enter an IPv4 address and prefix to see the network address, usable host range, broadcast address, subnet mask and wildcard mask.
Type an address such as 192.168.1.10 and choose the prefix, or type 10.0.0.5/22 straight into the address box. A subnet mask like 255.255.255.0 also works.
254 usable hosts: 192.168.1.1 – 192.168.1.254
11000000.10101000.00000001.00001010Mask in binary11111111.11111111.11111111.00000000A /24 keeps 24 bits for the network and leaves 8 bits for devices, so the mask is 255.255.255.0.
Addresses = 2 to the power of (32 − prefix). A /24 has 256; a /26 has 64.
Round the IP down to a multiple of the block size: 192.168.1.70/26 belongs to 192.168.1.64.
Network plus block size minus one: 192.168.1.64/26 ends at 192.168.1.127.
Everything between network and broadcast: 192.168.1.65 – 192.168.1.126, which is 62 hosts.
The next subnet starts right after the broadcast: 192.168.1.128/26.
Common prefixes from /16 to /32. Usable hosts excludes the network and broadcast addresses.
| Prefix | Subnet mask | Addresses | Usable hosts |
|---|---|---|---|
| /32 | 255.255.255.255 | 1 | 1 |
| /31 | 255.255.255.254 | 2 | 2 |
| /30 | 255.255.255.252 | 4 | 2 |
| /29 | 255.255.255.248 | 8 | 6 |
| /28 | 255.255.255.240 | 16 | 14 |
| /27 | 255.255.255.224 | 32 | 30 |
| /26 | 255.255.255.192 | 64 | 62 |
| /25 | 255.255.255.128 | 128 | 126 |
| /24 | 255.255.255.0 | 256 | 254 |
| /23 | 255.255.254.0 | 512 | 510 |
| /22 | 255.255.252.0 | 1,024 | 1,022 |
| /21 | 255.255.248.0 | 2,048 | 2,046 |
| /20 | 255.255.240.0 | 4,096 | 4,094 |
| /19 | 255.255.224.0 | 8,192 | 8,190 |
| /18 | 255.255.192.0 | 16,384 | 16,382 |
| /17 | 255.255.128.0 | 32,768 | 32,766 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
The number after the slash is the prefix length: how many of the 32 address bits identify the network. A /24 keeps 24 bits for the network and 8 bits for devices, which gives 256 addresses and 254 usable hosts, with the mask 255.255.255.0.
In a normal subnet the first address identifies the network and the last is the broadcast address, so neither can be given to a device. /31 point-to-point links and /32 single-host routes are the exceptions.
A wildcard mask is the inverse of the subnet mask. Routers and firewalls such as Cisco and MikroTik use it in access lists and OSPF to match a range of addresses.
A /24 (254 devices) suits most small offices. Put cameras, staff, guests and phones in separate subnets or VLANs; use a /23 or larger only when a single segment really needs more than 254 devices.
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private ranges used inside homes and offices. 100.64.0.0/10 is carrier-grade NAT used by many internet providers. Everything else in normal use is public.
Combine DNS, ping, traceroute and port checks when troubleshooting slow sites, mail delivery or remote services from any ISP.