Wildcard Mask Calculator

Enter a subnet mask or prefix length to get the wildcard (inverse) mask used in access control lists and routing protocol network statements.

Loading the tool…

How it works

  • A wildcard mask is the bitwise inverse of the subnet mask: 255.255.255.0 becomes 0.0.0.255.
  • In a wildcard, 0 bits must match and 1 bits are ignored.

Assumptions and limits

  • Only contiguous masks are supported. Non-contiguous wildcards are valid in some ACLs but are not covered here.

Frequently asked questions

What is a wildcard mask used for?

ACLs and OSPF statements use it to say which address bits must match and which can vary.

Related tools

Last reviewed 2026-10-28. More networking & internet tools. See the disclaimer.

Report a problem with this tool