ITEngineeringTools

Wildcard Mask Calculator

Convert an IPv4 subnet mask or prefix to a wildcard mask and reverse the conversion.

Input

Result

How it works

In a wildcard mask, a zero bit must match the address bit. A one bit ignores that position. A non-contiguous wildcard is valid in some ACLs but has no equivalent CIDR prefix.

Formula

Wildcard = subnet mask XOR 0xFFFFFFFF.

Example

Prefix or dotted mask: 24
Input type: Subnet mask or prefix

255.255.255.0 corresponds to wildcard 0.0.0.255.