Les Francs Gamers Contact

Free tools · Version française

IPv4 subnet calculator

Enter an address followed by its prefix length, for example 172.16.4.20/22. The tool gives the netmask, network address, broadcast address, first and last usable addresses and the host count.

A /24 leaves 254 host addresses, a /30 leaves two (point-to-point link), a /31 two with no network or broadcast address (RFC 3021) and a /32 is a single host.

Frequently asked questions

How do I turn a netmask into CIDR?

The prefix counts the 1 bits of the mask: 255.255.255.0 is /24, 255.255.252.0 is /22.

Why two fewer addresses?

In a regular subnet, the first address names the network and the last one is the broadcast address.

Does it handle IPv6?

Not yet: it handles IPv4.