Free Network Tools › Wildcard Mask Calculator
Wildcard Mask Calculator
Free wildcard mask calculator: convert a subnet mask or prefix to a wildcard and back, turn an IP range into wildcards, and preview ACL and OSPF lines.
How it works
- Wildcard = 255.255.255.255 − subnet mask, octet by octet (the bitwise inverse of the mask).
- A 0 bit in a wildcard means the address bit must match; a 1 bit means it is ignored.
- A contiguous wildcard (zeros then ones) matches 2^(ones) addresses and equals a prefix of 32 − ones. A non-contiguous wildcard is valid in an ACL but has no prefix length.
- An IP range matches exactly one ACL entry only if it is a single aligned block; otherwise it needs one entry per aligned block.
- IOS writes a 0.0.0.0 wildcard as "host" and a 255.255.255.255 wildcard as "any".
Related tools
- Subnet Calculator — Network, broadcast, host range, mask, wildcard and binary for any IPv4 address and prefix.
- VLSM Calculator — Allocate subnets of different sizes from one network, largest first, with every step shown.
- Subnetting Practice — Unlimited random subnetting questions with instant checking and a worked answer for each.