IP-in-Subnet Check

Is this address inside this subnet?

Enter an IPv4 address and a CIDR block. Get a clear yes/no, the subnet's network and broadcast bounds, and where the address sits within the range.

check — ip-in-subnet
.77 in /24
10.x in /8
172.20 in /12
Invalid input
Result
Network address
Broadcast address
Tested address
Position in range
How it works

Membership is a single bitwise test. Apply the subnet's mask to both the network address and the address you're testing; if the masked results are identical, the address is inside the block.

Formally: (ip & mask) == (network & mask). The mask zeroes out the host bits, leaving only the network portion to compare. This is exactly how a router decides whether a destination is local or needs a next hop.

Why the tool also shows bounds

Knowing an address is "in /24" is more useful alongside the actual first and last addresses, so the result includes the network and broadcast bounds and where your address falls between them.

FAQ
Does the network address itself count as "in" the subnet?

Yes — the network and broadcast addresses are part of the block. They just aren't normally assignable to hosts (except on a /31 or /32).

Can I paste a host address as the subnet?

Yes. 192.168.1.55/24 is normalized to its network 192.168.1.0/24 before testing.