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
More subnet tools
IPv4 subnet calculator
Network, host range, broadcast, mask and wildcard for any IPv4 block
Open toolIPv6 subnet calculator
Prefix ranges, /64 counts, splits and a ULA prefix generator
Open toolVLSM calculator
Size subnets by host count, with AWS, Azure, GCP and OCI rules
Open toolVisual subnet planner
Split and join blocks, label them, then share or export the plan
Open toolCIDR and IP range calculator
Turn any start and end address into the fewest CIDR blocks
Open toolSupernet and route summary
Summarise networks into one route or merge them exactly
Open toolSubnetting practice
Exam-style questions, checked instantly with the working shown
Open toolSubnet mask cheat sheet
Every prefix from /0 to /32 with mask, wildcard and hosts
Open toolIPv6 cheat sheet
Prefix sizes, address types and the reserved ranges
Open toolQuestions 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.