Free tool

Subnet (CIDR) calculator

Turn an address and prefix into its network, mask, usable range and host count. Works for IPv4 and IPv6.

For example 192.168.1.10/24, 10.0.0.1 255.255.0.0 or 2001:db8::/48.

Common questions

What does /24 mean?

The number after the slash is the prefix length: how many leading bits are the network part. A /24 in IPv4 leaves 8 bits for hosts, which is 256 addresses, 254 of them usable by devices.

Why are two addresses not usable?

In IPv4, the first address names the network itself and the last is the broadcast address, so devices use the ones in between. /31 and /32 are special cases with no such reservation.

How is IPv6 different?

IPv6 has no broadcast address, and networks are huge: a single /64, the usual size for one network, holds about 18 quintillion addresses.

More tools