Wildcard Mask Calculator

Convert between subnet masks and wildcard masks. Wildcard masks are the bitwise inverse of subnet masks, used in Cisco ACLs and OSPF.

Subnet mask255.255.255.0/24
Wildcard mask0.0.0.2550x000000FF

Binary

Mask
11111111111111111111111100000000
Wildcard
00000000000000000000000011111111
Prefix/24
Total IPs256
Usable hosts254
Mask hex0xFFFFFF00

Common mask reference

PrefixSubnet maskWildcardHosts

Wildcard Masks in Cisco ACLs

A wildcard mask is the bitwise complement of a subnet mask. A 0 bit means "must match", a 1 bit means "any value is OK". For example, wildcard 0.0.0.255 matches any host in the /24 subnet.