Skip to content

Wildcard Mask Calculator

A wildcard mask is the inverse of a subnet mask. Enter a CIDR prefix or a subnet mask to get the wildcard, the subnet mask, and the number of addresses in the block. In a Cisco IOS access list, 0 means the bit must match and 1 means the bit is ignored.

Use /24 or 255.255.255.0. The wildcard is the inverse of the subnet mask.

CIDR prefix

30 usable hosts

11111111111111111111111111100000
/27
/8/16/24/32
Network bitsHost bits

Drag the line. The wildcard is the inverse of the bits that stay network.

Wildcard mask

0.0.0.31

Inverse of 255.255.255.224

Subnet mask

255.255.255.224

CIDR /27. 27 network bits, 5 host bits.

Total addresses

32

30 usable hosts. An ACL matches the whole block.

In a Cisco IOS access list, a 0 in the wildcard must match and a 1 is ignored. Pair 0.0.0.31 with the network address. The list matches all 32 addresses in the block.

Subnet mask, binary

11111111111111111111111111100000

Wildcard mask, binary

00000000000000000000000000011111

ACL example

For 192.168.10.32/27 the subnet mask is 255.255.255.224 and the wildcard is 0.0.0.31. The block holds 32 addresses. An ACL that should match the block uses the network address 192.168.10.32 with wildcard 0.0.0.31. It matches all 32 addresses, not only the usable hosts.

access-list 10 permit 192.168.10.32 0.0.0.31

Questions

Yes. 255.255.255.0 inverts to 0.0.0.255. The wildcard does not include the network address. You still supply that separately.

The subnet mask marks network bits with 1. The wildcard marks the bits an ACL will ignore with 1. They are inverses, and mixing them up permits the wrong traffic.

Sources

Reviewed 8 October 2026. The methodology page records what these labels do not cover.

Related tools