CIDR Calculator
Explore an IPv4 CIDR block's network and address range.
Calculation runs in your browser. The CIDR block is not sent to the server.
How to use this tool
- Enter one IPv4 address and prefix in CIDR form.
- Calculate the normalized block and inclusive address range.
- Review the address count and range classification.
What the result means
CIDR notation combines an IP address with a prefix length. A shorter prefix covers a larger block. This calculator clears any host bits to show the canonical network and inclusive range endpoints. For IPv4, each step down in prefix length doubles the address count: a /24 has 256 addresses, while a /23 has 512. The displayed count includes every address in the block.
Example
192.0.2.42/24 normalizes to 192.0.2.0/24 and covers 192.0.2.0 through 192.0.2.255. This is a documentation range; use an assigned public or private block for a real network plan.
Limitations
This release calculates IPv4 blocks. Range classification uses allocation categories and does not imply reachability or ownership. A block crossing category boundaries is shown as mixed. Calculation stays in your browser.
Common questions
Can the input contain host bits?
Yes. The calculator clears them and shows the normalized network CIDR.
Is the range inclusive?
Yes. The first and last displayed addresses are both included in the address count.
Does the address count equal usable hosts?
No. It counts every address in the block. Usable host counts depend on the network's purpose and prefix; the subnet calculator explains /31 and /32 cases.