Which addresses belong to a network?
A network like 192.168.1.0/24 is a block of addresses. Enter one to see which addresses your devices can use, how many there are, and what the number after the slash means.
1,022 addresses for devices: 192.168.0.1 to 192.168.3.254.
192.168.0.0 names the network and 192.168.3.255 reaches every device at once. Private: used inside homes and offices, never seen on the internet.
An IPv4 address has 32 bits. The first 22 name the network and stay the same for every device in it; the last 10 number the devices.
192.168.0.0/22255.255.252.0The same size, written as an address.0.0.3.255The mask flipped, used in router and firewall rules.192.168.0.1192.168.3.254192.168.3.255Click a row to try it with your address.
| Size | Mask | Devices | Typical use |
|---|---|---|---|
| /32 | 255.255.255.255 | One address | a single device or server |
| /31 | 255.255.255.254 | Two addresses | a link between two routers |
| /30 | 255.255.255.252 | Two addresses | a small link with room to spare |
| /29 | 255.255.255.248 | 6 | a small office's public block |
| /28 | 255.255.255.240 | 14 | a small office |
| /27 | 255.255.255.224 | 30 | a floor of an office |
| /26 | 255.255.255.192 | 62 | a guest Wi-Fi |
| /25 | 255.255.255.128 | 126 | half a home network |
| /24 | 255.255.255.0 | 254 | a typical home network |
| /23 | 255.255.254.0 | 510 | a bigger home or school network |
| /22 | 255.255.252.0 | 1,022 | a company building |
| /16 | 255.255.0.0 | 65,534 | a large company or campus |
| /8 | 255.0.0.0 | 16,777,214 | a whole provider or very large company |
One address can be written many ways. Browsers and most programs accept all of them, which is why odd-looking links like http://3232235777/ still open a site.
192.168.1.3732322358130xC0A8012511000000.10101000.00000001.00100101::ffff:192.168.1.37::ffff:c0a8:12537.1.168.192.in-addr.arpacurl ip5.io/subnet-calculator/192.168.1.0/24 curl "ip5.io/subnet-calculator/2001:db8::/48?format=json"
Worked out in your browser. Nothing you enter is stored.
An IPv4 address has 32 bits. The number after the slash says how many of them name the network; the rest number the devices in it. /24 leaves 8 bits for devices: 256 addresses, 254 of them usable.
The same thing written as an address. 255.255.255.0 is /24: the 255s cover the network part, the 0 the device part. Older settings screens ask for the mask, newer ones for the number after the slash.
The first one names the network itself, and the last one is the broadcast address, which reaches every device at once. The exceptions are /31, used for links between two routers, and /32, a single address. IPv6 has no broadcast, so it uses every address.
192.168.0.0/16, 10.0.0.0/8 and 172.16.0.0/12 are set aside for private networks. Every home can use them, because they never appear on the internet: your router shares one public address for all of them.
Only if their network parts match. With /24, 192.168.1.20 and 192.168.1.200 are on the same network; 192.168.1.20 and 192.168.2.20 are not, and need a router between them.