Wildcard Mask Calculator

Convert subnet masks and CIDR prefixes to Cisco-style wildcard masks, calculate the corresponding network mask, and test whether an IPv4 address matches a wildcard pattern.

Wildcard Matching Test

Enter a base/network address and a wildcard mask. In Cisco-style wildcard logic, 0 = must match and 1 = ignore this bit.

Example: 192.168.10.0 0.0.0.255 matches addresses from 192.168.10.0 through 192.168.10.255.

Wildcard Masks You Should Know

Subnet MaskCIDRWildcard MaskTypical use
255.255.255.0/240.0.0.255Match a /24 network
255.255.255.128/250.0.0.127Match a /25 subnet
255.255.255.192/260.0.0.63Match a /26 subnet
255.255.255.224/270.0.0.31Match a /27 subnet
255.255.255.240/280.0.0.15Match a /28 subnet
255.255.255.248/290.0.0.7Match a /29 subnet
255.255.255.252/300.0.0.3Match a /30 subnet
255.255.255.255/320.0.0.0Match one exact IP
0.0.0.0/0255.255.255.255Match any IPv4 address

Why Cisco Uses Wildcard Masks

A subnet mask describes which bits belong to the network. A wildcard mask is its inverse: 0 bits are significant and must match; 1 bits are ignored.

Example:
Network: 192.168.10.0
Subnet mask: 255.255.255.0
Wildcard: 0.0.0.255

This means the first three octets must match, while the last octet can vary from 0 to 255.

Common Cisco contexts

Important: wildcard masks are not the same thing as subnet masks. A subnet mask's 1 bits identify the network portion; a wildcard mask's 0 bits identify the bits that must match.

Related Zee Links Tools

Call WhatsApp