Wildcard Mask Calculator

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

Frequently Asked Questions

What is a wildcard mask?

The bitwise inverse of a subnet mask (255.255.255.255 − mask), used in Cisco ACLs and OSPF. A /24 mask 255.255.255.0 becomes wildcard 0.0.0.255 - 0 bits must match, 1 bits are "don't care".

How is it different from a subnet mask?

A subnet mask defines network vs host for addressing; a wildcard mask defines which address bits a rule must match. This tool focuses on the ACL/OSPF use, not subnet design.

Can wildcard masks be non-contiguous?

Yes - unlike subnet masks, wildcards can match patterns like all odd hosts or every fourth subnet (e.g., 0.0.0.254), which the calculator can illustrate.

What address range does an ACL line cover?

The base address combined with the wildcard. 10.0.0.0 with 0.0.0.255 matches 10.0.0.0–10.0.0.255; the tool shows the resulting range and example syntax.

Important Disclaimer: Estimates for informational purposes only.

This calculator provides estimates for informational purposes only. Results are based on assumptions and may not reflect actual outcomes. Consult qualified professionals in relevant fields before making important decisions based on these results.