Free tech learning for everyone, from basics to pro

Wildcard mask calculator

Convert a prefix or subnet mask to the wildcard mask used in ACLs and OSPF.

Runs on your device · nothing is uploaded

What is a wildcard mask?

A wildcard mask is the opposite of a subnet mask: every 0 bit means "must match" and every 1 bit means "any value". Cisco access lists and OSPF network statements use them. The quick way to work one out is to subtract each octet of the subnet mask from 255.

PrefixSubnet maskWildcard
/24255.255.255.00.0.0.255
/27255.255.255.2240.0.0.31
/30255.255.255.2520.0.0.3

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.