Network
Wildcard Mask Calculator
Convert a subnet mask into a wildcard mask (and vice versa): essential for Cisco ACLs, OSPF, Wireshark and firewalls.
How it works
The wildcard mask is the bitwise complement of the subnet mask: mask 255.255.255.0 becomes wildcard 0.0.0.255 by inverting each bit.
It is used in Cisco ACLs (permit 192.168.1.0 0.0.0.255), OSPF announcements and some tools such as Wireshark. A wildcard of 0.0.0.0 means "exactly this address"; a wildcard of 255.255.255.255 covers everything.
Examples
Frequently asked questions
What is the difference between a mask and a wildcard?
The mask uses 1 for the network part; the wildcard reverses the logic: 0 means "must match", 1 means "don't care".
Where do you find wildcard masks?
Cisco ACLs, OSPF redistribution, filtering rules, captures with BPF filters (tcpdump/Wireshark).