IPv4 / CIDR calculator

How to use

Enter an IPv4 address or CIDR such as 192.168.1.10/24, or an address plus a prefix or dotted netmask. The page shows the network, broadcast, usable hosts, and whether another address is in that range. Nothing is stored or sent anywhere.

Examples: 10.0.0.1/8, 192.168.1.10, or 172.16.0.4/255.255.0.0.

Used when the address has no /. A prefix of 0–32 or a contiguous dotted mask such as 255.255.255.0.

About

Calculation is IPv4 only and runs in the browser. A standard prefix of 0–30 reserves the network and broadcast addresses, so the usable host count is two less than the number of addresses. A /31 is treated as a point-to-point link with two usable addresses (RFC 3021). A /32 is a single host. Octets must be decimal 0–255 with no leading zeros. The netmask must be a contiguous prefix; a value such as 255.255.0.255 is rejected. Address notes cover unspecified, loopback, private (RFC 1918), link-local, and multicast ranges. Nothing is stored or sent anywhere.