Ad slot — header (728x90)

Wildcard Mask Calculator

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.

Examples: 255.255.255.0  |  192.168.1.0/24  |  /24  |  24
Invalid input. Please enter a valid subnet mask (e.g. 255.255.255.0), CIDR notation (e.g. 192.168.1.0/24), or prefix length (e.g. 24).
Input:
Prefix:
Subnet Mask:
Wildcard Mask:
Binary Mask:
Binary Wild:

What is a Wildcard Mask?

A 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.

Where Are Wildcard Masks Used?

Wildcard Mask Quick Reference Table

CIDR PrefixSubnet MaskWildcard Mask
/8255.0.0.00.255.255.255
/16255.255.0.00.0.255.255
/24255.255.255.00.0.0.255
/25255.255.255.1280.0.0.127
/26255.255.255.1920.0.0.63
/27255.255.255.2240.0.0.31
/28255.255.255.2400.0.0.15
/29255.255.255.2480.0.0.7
/30255.255.255.2520.0.0.3

Wildcard Mask vs Subnet Mask

PropertySubnet MaskWildcard Mask
RelationshipDefines network/host boundaryBitwise inverse of subnet mask
/24 example255.255.255.00.0.0.255
/16 example255.255.0.00.0.255.255
/28 example255.255.255.2400.0.0.15
Bit meaning (0)Host bit — varies per hostNetwork bit — must match
Bit meaning (1)Network bit — fixedHost bit — ignore (wildcard)
Used inInterface configuration, routingACLs, OSPF, firewall rules
Conversion255.255.255.x / 255 - wildcard_octet255 - subnet_octet per octet
Calculate full subnet details with SubnetSolver →

Related Guides

Ad slot — footer (728x90)