Wildcard Mask

Wildcard mask from a prefix length or a netmask

🔒 Your data stays in your browser: nothing you type or upload is sent to a server.

How it works

A wildcard mask is the netmask inverted: a 0 bit must match, a 1 bit is ignored. Move the prefix or type either kind of mask and the tool detects which one it is. Non-contiguous masks such as 255.0.255.0 are rejected because they do not describe a subnet.

Formula

wildcard = 255.255.255.255 - netmask

Common questions

What does 0.0.0.0 mean as a wildcard?

Every bit must match, so it selects exactly one host (Cisco shortens it to "host"). The opposite, 255.255.255.255, matches any address ("any").

Related tools