Text and developer tools

IPv4 CIDR and subnet calculator

Calculate an IPv4 network, subnet mask, wildcard, address range and host count with explicit /31 and /32 handling.

Runs in your browser. Inputs stay on this page and are not uploaded or added to the URL.

Use dotted decimal and /0 through /32. IPv6 and leading-zero octets are not supported.

How to use this tool

Enter any IPv4 address with its prefix length. The calculator derives the containing network and final address, subnet and wildcard masks, and the conventional host range. It uses address arithmetic only and sends no network probes.

For prefixes /0–/30, the conventional host count excludes network and broadcast addresses. A /31 is interpreted as an RFC 3021 point-to-point link with two usable addresses; /32 denotes one host. Special-purpose address allocations, device support and your network’s policy can further constrain actual use.

Worked example

192.168.1.42/24 belongs to 192.168.1.0/24. Its mask is 255.255.255.0 and its conventional host range is 192.168.1.1–192.168.1.254.

References and method

Contifield is an independent utility site. Reference publishers do not endorse this tool.

Related tools