Be Management Tools · IPv4 · Cisco IOS

Wildcard Mask Calculator

Get the inverse mask for any subnet so your access-list and OSPF network statements match exactly the addresses you intend.

100% free No sign-up Runs in your browser IPv4 + IPv6 Shareable links

Subnet tools

Binary (network bits highlighted)

Split into subnets

#NetworkUsable rangeBroadcastHosts

NameNeededAllocatedNetworkMaskUsable rangeBroadcastWasted

Binary – first 64 bits (network bits highlighted)

Split into subnets

#SubnetFirst addressLast address

CIDR → IP range

IP range → CIDR blocks

#CIDRMaskFirstLastAddresses

Is IP in subnet?

Reference: all prefixes /0 – /32 (mask, wildcard, addresses, hosts)
CIDRSubnet maskWildcardAddressesUsable hosts

Paste one CIDR per line (or separated by spaces/commas). SubnetKit merges adjacent and contained blocks into the smallest equivalent set – ideal for route summarization and ACL cleanup. PRO

Saved projects PRO

Save every input across all tabs under a name and reload it later. Free plan: 1 project, Pro: unlimited.

Wildcard Mask Calculator: how it works

Cisco access lists, OSPF and EIGRP network statements take a wildcard mask rather than a subnet mask. A 0 bit means "must match", a 1 bit means "ignore", so the wildcard is simply the bitwise inverse of the subnet mask: 255.255.255.255 minus the mask, octet by octet.

SubnetKit shows the wildcard next to the subnet mask for every calculation, and its free-form input accepts the address wildcard syntax straight from an IOS config. It is free and runs in the browser.

Worked example: 172.16.32.0/20

The same block in IOS syntax:

To match a single host use wildcard 0.0.0.0, or the host keyword; to match everything use 0.0.0.0 255.255.255.255, or any. Paste 172.16.32.0 0.0.15.255 into SubnetKit's quick-entry box and it is parsed as /20 automatically.

Reference: prefix, mask and wildcard

Wildcards are not limited to contiguous ones. In an ACL, 0.0.1.0 would match every even-numbered or odd-numbered third octet, a trick occasionally used to match alternate subnets in one line. Such discontiguous masks are legal in ACLs but not in OSPF.

Frequently asked questions

How do I calculate a wildcard mask?

Subtract each octet of the subnet mask from 255. For 255.255.255.192 the result is 0.0.0.63.

Is a wildcard mask the same as an inverse mask?

Yes. Cisco documentation uses both terms for the bitwise complement of the subnet mask.

Why does OSPF use wildcard masks?

The network statement originally reused ACL matching logic, which tests address bits selectively. Modern IOS also accepts a subnet mask here and converts it, but exams still expect the wildcard form.

What wildcard matches a single host?

0.0.0.0, meaning every bit must match. In ACLs you can write host 10.1.1.5 instead of 10.1.1.5 0.0.0.0.

Looking for the full guide, tips and the complete FAQ? Read the main SubnetKit page.