Wildcard Mask Calculator

Enter a subnet mask or CIDR prefix length to instantly get the wildcard (inverse) mask used in Cisco ACLs and OSPF.

Wildcard Mask Input

Enter in dotted-decimal format.

Common Prefixes

Enter a subnet mask or CIDR prefix, then click Calculate.

Copied!

Summary

Enter a subnet mask or CIDR prefix length to instantly get the wildcard (inverse) mask used in Cisco ACLs and OSPF.

How it works

  1. Enter a subnet mask in dotted-decimal form (e.g. 255.255.255.0) or a CIDR prefix length (e.g. /24 or just 24).
  2. Click "Calculate" to compute the wildcard mask.
  3. The wildcard mask is derived by inverting every bit of the subnet mask (255.255.255.255 XOR subnet mask).
  4. Results include the wildcard mask, subnet mask, CIDR prefix, and a binary breakdown for all four octets.
  5. Use the "Copy" buttons to paste individual values directly into your router or firewall configuration.

Use cases

  • Write Cisco IOS access-list permit/deny statements that match entire subnets.
  • Configure OSPF network commands with the correct wildcard mask.
  • Verify ACL wildcard masks when troubleshooting traffic filtering.
  • Convert subnet masks learned from CCNA studies to wildcard format.
  • Generate wildcard masks for BGP prefix-list or route-map entries.
  • Double-check firewall rules that use inverse mask notation.
  • Quickly identify how many host bits a given wildcard mask covers.
  • Support CCIE/CCNP lab practice with instant mask conversion.

Frequently Asked Questions

Last updated: 2026-06-10 · Reviewed by Nham Vu