IPv4 subnet calculatorNetwork, host range, broadcast, mask and wildcard for any IPv4 blockIPv6 subnet calculatorPrefix ranges, /64 counts, splits and a ULA prefix generatorVLSM calculatorSize subnets by host count, with AWS, Azure, GCP and OCI rulesVisual subnet plannerSplit and join blocks, label them, then share or export the planCIDR and IP range calculatorTurn any start and end address into the fewest CIDR blocksSupernet and route summarySummarise networks into one route or merge them exactlyWildcard mask calculatorACL wildcards, matched ranges and ready Cisco linesSubnetting practiceExam-style questions, checked instantly with the working shownSubnet mask cheat sheetEvery prefix from /0 to /32 with mask, wildcard and hostsIPv6 cheat sheetPrefix sizes, address types and the reserved rangesGuidesHow subnetting works, explained with worked examples

Wildcard mask calculator

Convert between prefix, subnet mask and wildcard, see exactly which addresses an ACL entry matches, and turn any IP range into ready-to-paste Cisco lines.

Convert prefix, mask and wildcard

IP range to ACL lines

Cisco standard ACL

      

What does this ACL entry match?

Must matchAny value
First matches
Config lines

    

Questions people ask

What is a wildcard mask?
A wildcard mask is the inverse of a subnet mask. A 0 bit means the address bit must match and a 1 bit means it can be anything. Cisco ACLs and OSPF network statements use them. The wildcard for 255.255.255.0 is 0.0.0.255.
How do I get the wildcard from a subnet mask?
Subtract each octet of the mask from 255. For 255.255.240.0 that gives 0.0.15.255.
Can a wildcard mask be non-contiguous?
Yes, in ACLs. A wildcard like 0.0.254.255 matches every odd-numbered third octet, which no subnet mask can express. This calculator counts and lists the matches for any wildcard, and tells you when it does not form a single subnet.
How do I match an IP range in an ACL?
Split the range into CIDR blocks and write one line per block with its wildcard. The range section below does this and prints the ACL lines.