Tested tool guide
Tested browser tools
Checked August 16, 2026
What Wildcard Mask Calculator does, with a checked example
This tool inverts a subnet mask, octet by octet, to produce the wildcard mask Cisco IOS expects in access control list and OSPF network statements. Enter a dotted subnet mask (255.255.255.0) or a CIDR prefix (/24) and it returns the complementary wildcard (0.0.0.255). The detail that trips people up: wildcard mask bits mean the opposite of subnet mask bits - a 0 means 'must match this bit', a 1 means 'ignore this bit' - so a wildcard of 0.0.0.0 matches exactly one host, not every host, which is backwards from how a 0.0.0.0 subnet mask would read.
Worked example
A concrete input and expected output from the current implementation.
Each octet of the wildcard mask is 255 minus the matching subnet mask octet: 255-255=0 for the first three octets, and 255-224=31 for the last, since /27 leaves 5 host bits (2^5-1=31).