About this tool
Wildcard Mask Converter changes between the three ways of writing the same IPv4 subnet size: a CIDR prefix such as /24, a subnet mask such as 255.255.255.0 and a wildcard mask such as 0.0.0.255. Enter any one of them and all three are shown.
A wildcard mask is the bitwise opposite of the subnet mask, so 0 bits must match and 1 bits are ignored. It is used in Cisco-style access lists and OSPF network statements. The tool accepts a prefix with or without the slash (/24 or 24), a dotted mask, or a dotted wildcard. For dotted input it first tries to read it as a subnet mask, then as a wildcard. That means 0.0.0.0 is read as the mask for /0 and 255.255.255.255 as the mask for /32, even though in an access list they usually mean a wildcard for one host and for all addresses respectively.
Only contiguous masks are valid: 255.0.255.0 or a wildcard like 0.255.0.255 is reported as invalid, as is a prefix above 32. The converter handles IPv4 only and does not take an address, so for network and broadcast values use a subnet calculator. Everything runs locally in your browser.