ZWIEGNET Linux Consultants
$ ipcalc

CIDR Calculator

Calculate IPv4 CIDR network information.

How to use the CIDR calculator

CIDR notation is an IPv4 address, a slash, and a prefix length. This calculator turns that into the network, the mask, and the size of the block. It is the same arithmetic as the subnet calculator, aimed at the question people ask when they are handed a block: how big is 10.2.0.0/22, and what is the last address.

A /22 is 1024 addresses, from the network address through the broadcast, because 32 minus 22 is 10 host bits and 2 to the 10th is 1024. The first and last usable addresses sit inside that, except on /31 and /32 where the old reserved-address rule does not apply the same way. Work an example before you trust a change: 10.2.0.0/22 runs 10.2.0.0 through 10.2.3.255. If someone documents 10.2.4.0 as inside that block, they are wrong, and the calculator will show it.

The tool does not summarize routes, and it does not tell you whether two prefixes overlap. Overlap is a separate check: write both networks and see if one range sits inside the other. It also does not convert a wildcard mask. Cisco-style wildcards are the inverse of the netmask, and you still start from the prefix.

Enter dotted decimal and a prefix from 0 to 32. Hostnames are not resolved here. IPv6 prefixes belong on the IPv6 subnet calculator.