Wildcard Mask Calculator
Calculate the wildcard mask from a subnet mask, or the subnet mask from a wildcard mask.
Inputs
Mask Details
Results will appear here.
Wildcard masks are the inverse of subnet masks and are used extensively in Cisco ACLs, OSPF network statements, and other router configurations where you want to specify which bits of an address must match. Getting the wildcard mask wrong is one of the most common sources of misconfigured access lists, leading to either over-permissive rules or blocked legitimate traffic.
This tool computes the wildcard mask for any subnet mask or CIDR prefix. It also works in reverse — given a wildcard mask, it derives the corresponding subnet mask — making it useful for both writing new rules and interpreting existing ones in router configurations or audit reports.
How to Calculate a Wildcard Mask Online
- 1
Enter a subnet mask
Input a dotted-decimal subnet mask (e.g., 255.255.255.0) or a CIDR prefix (/24). The calculator accepts both formats.
- 2
The calculator inverts the mask
The tool performs binary inversion: each 0 bit in the subnet mask becomes 1, and each 1 bit becomes 0. This produces the wildcard mask.
- 3
View the wildcard mask
The wildcard mask is displayed in dotted-decimal notation. Copy the result for use in ACLs, routing protocols, or network configuration.
How Wildcard Masks Work
A wildcard mask is the bitwise complement of the subnet mask. Where the subnet mask has a 1 bit (network portion), the wildcard mask has a 0 (must match); where the subnet mask has a 0 bit (host portion), the wildcard mask has a 1 (any value matches). A wildcard of 0.0.0.255 applied to 192.168.1.0 matches all addresses from 192.168.1.0 to 192.168.1.255.
Unlike subnet masks, wildcard masks do not need to be contiguous. Cisco IOS uses non-contiguous wildcards to match non-contiguous address sets — for example, matching every even-numbered host in a range. This tool focuses on the standard contiguous case, which covers the vast majority of real-world configurations.
Why Use FileCrank Wildcard Mask Calculator
- ✓ Instantly calculates the wildcard mask from any subnet mask or CIDR prefix
- ✓ Works bidirectionally: calculate wildcard from subnet mask or vice versa
- ✓ Displays results in dotted-decimal notation with binary breakdown for clarity
- ✓ Runs entirely in your browser — no data transmission
- ✓ Essential for Cisco network configuration, ACLs, and access lists
Features & Specs
Frequently Asked Questions
How do I use the Wildcard Mask Calculator?
Enter a subnet mask (e.g., 255.255.255.0) or CIDR prefix (e.g., /24) and the tool instantly calculates the equivalent wildcard mask (e.g., 0.0.0.255).
What is a wildcard mask?
A wildcard mask specifies which bits in an address must match and which can vary. In a wildcard mask, 0 = must match, 1 = can vary. It is the bitwise inverse of a subnet mask.
What is the difference between a subnet mask and a wildcard mask?
A subnet mask divides an address into network and host portions (1s = network, 0s = host). A wildcard mask specifies matching rules (0 = must match, 1 = can vary). They are binary inverses of each other.
When do you use wildcard masks in ACLs?
Wildcard masks are used in Cisco access control lists (ACLs) to specify which packets to permit or deny. For example, 'permit tcp any 192.168.1.0 0.0.0.255' permits traffic to any host in the 192.168.1.0/24 network.
Does the calculator send my data anywhere?
No. All wildcard mask calculations run entirely in your browser using binary inversion. Your network configuration data stays on your device.
Is this tool useful for CCNA exam preparation?
Yes. Understanding wildcard masks is essential for CCNA exam success, especially for access list configuration and route filtering. This tool helps you practice mask calculations quickly.
Wildcard Calculator vs. Subnet Calculator
Most subnet calculators include the wildcard mask as one field among many, burying it in output alongside network and broadcast addresses. This tool makes the wildcard mask the primary focus, accepting either a subnet mask or CIDR prefix as input and returning the wildcard immediately — optimised for the specific workflow of writing or reviewing router ACLs.
Related Tools
IPv4 Subnet Calculator
Calculate network address, broadcast address, usable host range, subnet mask, wildcard mask, and host count from any IPv4 CIDR block.
Subnet to CIDR Converter
Convert a subnet mask (e.g. 255.255.255.0) to CIDR prefix notation (e.g. /24).
Supernet Calculator
Find the smallest supernet (summary route) that covers a given set of input subnets.
FileCrank Wildcard Mask Calculator computes the wildcard mask from any subnet mask or CIDR prefix by inverting all bits (0 ↔ 1). Calculations run entirely client-side using binary arithmetic — no data is transmitted. Free to use with no account required. Also searchable as: wildcard mask calculator, inverse subnet mask calculator, ACL wildcard mask tool, Cisco wildcard mask.
Advertisement