Network

Wildcard Mask Calculator

Convert a subnet mask into a wildcard mask (and vice versa): essential for Cisco ACLs, OSPF, Wireshark and firewalls.

Accepted examples: 24, 255.255.255.0, 0.0.0.255.

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

/24 mask

Wildcard: 0.0.0.255.

mask255.255.255.0
Load this example

Single host

Wildcard: 0.0.0.0.

mask32
Load this example

Wildcard entered

Corresponds to the /26 mask.

mask0.0.0.63
Load this example

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).