IP Address Today

IP in range checker

Put an address on the left and a block on the right. If it does not match, you get how far outside it falls — usually the fastest way to spot an off-by-one in a firewall rule. Put a block on the left instead to compare two blocks.

Try:

192.168.1.130 is inside 192.168.1.0/24

Range
192.168.1.0 – 192.168.1.255
Addresses in range
256
Position
131 of 256

Blocks nest, ranges overlap

A CIDR block is a prefix plus a length, so the set of addresses it covers always starts on a power-of-two boundary and has a power-of-two size. That constraint is what makes routing tables searchable, and it also means two blocks can never half-overlap.

A first–last range has no such constraint. 10.0.0.5–10.0.0.20 is a perfectly good range and a terrible block — it takes several CIDR blocks to express. When a firewall accepts ranges and your documentation records blocks, this is where the mismatches come from.

The blocks worth memorising

Most "is this address internal?" questions are answered by this table rather than by a calculator.

Special-purpose IPv4 blocks
BlockAddressesMeaning
10.0.0.0/816,777,216Private (RFC 1918)
172.16.0.0/121,048,576Private (RFC 1918)
192.168.0.0/1665,536Private (RFC 1918)
100.64.0.0/104,194,304Carrier-grade NAT (RFC 6598)
127.0.0.0/816,777,216Loopback
169.254.0.0/1665,536Link-local (APIPA)
224.0.0.0/4268,435,456Multicast
0.0.0.0/04,294,967,296Every address — the default route

Frequently asked

Can two CIDR blocks partially overlap?
No. CIDR blocks form a tree: any two are either disjoint or one wholly contains the other. If two blocks share even one address, the one with the shorter prefix contains every address of the longer. Arbitrary first–last ranges are different — those can half-overlap, which is one reason ranges are harder to reason about than blocks.
Why does 10.0.0.5/24 not mean what I expect?
A CIDR block is defined by its network address, so 10.0.0.5/24 describes the block 10.0.0.0/24 — the host bits are ignored. Most tools accept it and silently normalise, which is convenient until you paste it somewhere strict and get an error. Write the network address when you mean a block.
Does a /31 contain usable addresses?
Both of them. RFC 3021 permits /31 on point-to-point links, where there is no need to reserve a network and broadcast address, so both addresses are assignable. A /32 is a single host route. The usual 'subtract two' rule applies only to /30 and shorter.
Is 0.0.0.0/0 a real block?
Yes — it is every IPv4 address, which is why it is the default route and why it appears in firewall rules meaning 'anywhere'. A checker should say every address is inside it, and this one does.

Doing this for thousands of addresses?

These calculators run in your browser and never send us your input. When you need geolocation, ASN and network data for addresses in bulk, the API answers in one call — no key required to try it.

curl https://api.ipaddresstoday.com/api/v1/8.8.8.8

Other free tools