natbox.io

IPv4 subnet calculator

Network, broadcast, netmask and usable range for any IPv4 address and prefix. Runs in your browser; nothing is sent anywhere.


Common prefixes

PrefixNetmaskAddressesUsable hosts
/32255.255.255.25511 (a single address)
/30255.255.255.25242
/29255.255.255.24886
/28255.255.255.2401614
/27255.255.255.2243230
/26255.255.255.1926462
/25255.255.255.128128126
/24255.255.255.0256254
/16255.255.0.065,53665,534
/8255.0.0.016,777,21616,777,214

How it works

The prefix says how many of the 32 bits are the network part. A /24 keeps the first 24 bits for the network and leaves 8 bits, 256 addresses, for hosts. The first address is the network itself and the last is the broadcast, so 254 can be given to machines. A /31 is the exception: point-to-point links use both addresses.

Private ranges you can use at home or inside a server: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. On natbox, each server gets a private IPv4 address in 10.66.0.0/24 behind the shared public address, and a whole routed /80 of IPv6 (IPv6 subnet calculator).

More free tools: IPv6 subnet calculator, DNS lookup, all tools.