Does a CIDR Contain an IP?

Enter a CIDR block and one or more IPs to see which ones fall inside it.

Result

An address is inside a block when it lies between the network address and the broadcast address, inclusive. The check runs in your browser, so you can paste real addresses safely.

Related: CIDR to IP range | IP range to CIDR | Does a CIDR contain an IP? | Split a subnet

FAQ

How do I check if an IP is in a CIDR range?

Convert both to 32-bit numbers and test whether the IP lies between the block's first and last address, or apply the mask to the IP and compare it to the network address.

Does the network or broadcast address count as inside?

Yes, both belong to the block, although they are normally not assigned to hosts.

Can I check several IPs at once?

Yes. Put one address per line and each gets its own inside or outside result.

© PacketUtils. Tools run in your browser. Review every command before using it in production.HomeAboutContactPrivacy Policy