Richscripts

IPv4 subnet calculator

Type an address with a prefix, such as 192.168.1.10/24, to see the whole subnet.

Private: everything happens in your browser. Nothing you type or choose is uploaded.

How to use it

  1. Type an IPv4 address with /prefix, or an address plus a mask such as 255.255.255.0.
  2. Read the network, broadcast, host range and counts.
  3. Change the prefix to compare subnet sizes.

Questions and answers

How many hosts are in a /24?

256 addresses, of which 254 can be used by hosts: the first is the network address and the last is the broadcast address.

What about /31 and /32?

A /31 has two usable addresses for point-to-point links (RFC 3021) and no broadcast; a /32 is a single host.

What is a wildcard mask?

The inverse of the subnet mask, used in Cisco access lists and OSPF; for /24 it is 0.0.0.255.

Developer tools