IPv4 Subnet & CIDR Calculator

Convert any IPv4 address and prefix length into its network address, broadcast address, usable host range, and total capacity.

Další jazyky: ja | en | zh-CN | ko | de | it

Enter an integer between 0 and 32. Example: /24 becomes 24.

Results

FAQ

What is the difference between the network and broadcast address?

The network address identifies the subnet itself, while the broadcast address distributes packets to every host in that subnet.

Why do /31 and /32 behave differently?

/31 subnets are designed for point-to-point links so both addresses are usable. A /32 describes a single host where network and broadcast share the same value.

How is the subnet mask derived from CIDR?

The prefix length sets the leading bits of a 32-bit mask to 1 and the remaining bits to 0, producing dotted-decimal masks like 255.255.255.0.

How it's calculated