Last reviewed: May 2026
Enter any subnet mask, CIDR notation, or prefix length below to instantly calculate the wildcard mask. Used for Cisco ACLs, OSPF network statements, firewall rules, and more.
255.255.255.0 | 192.168.1.0/24 | /24 | 24A wildcard mask is the bitwise inverse of a subnet mask. For each bit position in the 32-bit address:
The calculation is simple: for each octet, subtract the subnet mask octet from 255. For example, subnet mask 255.255.255.0 becomes wildcard mask 0.0.0.255 — every host in the 192.168.1.x network matches when paired with address 192.168.1.0 in a Cisco ACL.
access-list 100 permit ip 192.168.1.0 0.0.0.255 — the wildcard tells the ACL which bits to match and which to ignore. A 0 in the wildcard means "must match," a 1 means "ignore."network 10.0.0.0 0.255.255.255 area 0 — the wildcard identifies which interfaces fall into the OSPF process and area.| CIDR Prefix | Subnet Mask | Wildcard Mask |
|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 |
| /16 | 255.255.0.0 | 0.0.255.255 |
| /24 | 255.255.255.0 | 0.0.0.255 |
| /25 | 255.255.255.128 | 0.0.0.127 |
| /26 | 255.255.255.192 | 0.0.0.63 |
| /27 | 255.255.255.224 | 0.0.0.31 |
| /28 | 255.255.255.240 | 0.0.0.15 |
| /29 | 255.255.255.248 | 0.0.0.7 |
| /30 | 255.255.255.252 | 0.0.0.3 |
| Property | Subnet Mask | Wildcard Mask |
|---|---|---|
| Relationship | Defines network/host boundary | Bitwise inverse of subnet mask |
| /24 example | 255.255.255.0 | 0.0.0.255 |
| /16 example | 255.255.0.0 | 0.0.255.255 |
| /28 example | 255.255.255.240 | 0.0.0.15 |
| Bit meaning (0) | Host bit — varies per host | Network bit — must match |
| Bit meaning (1) | Network bit — fixed | Host bit — ignore (wildcard) |
| Used in | Interface configuration, routing | ACLs, OSPF, firewall rules |
| Conversion | 255.255.255.x / 255 - wildcard_octet | 255 - subnet_octet per octet |