TinyCalc

Is IP in CIDR Range

Check whether an IPv4 address falls inside a CIDR block.

Resulttinycalc.net
in range if (IP AND mask) = network address

How it works

An address belongs to a CIDR block when ANDing it with the block's netmask yields the block's network address. 10.0.5.20 sits inside 10.0.0.0/16 because its first 16 bits match. Great for checking firewall rules, allowlists and VPC ranges.

Related calculators