Skip to main content
IP Range CalculatorPRO
Masks, Wildcards & ACLInstant Client-Side Tool

ACL Wildcard Match Calculator

Evaluate address-and-wildcard matching.

ACL Wildcard Match Calculator: inputs and results

Enter an IP address, CIDR prefix, or range. Then check its first and last address below.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

How ACL Wildcard Match Calculator Works?

This tool works by ignoring every bit position where the wildcard has a 1 and comparing the remaining bits of the test address with the base address.

  1. Enter the base address

    Type the ACL base address, such as 192.168.0.0.

  2. Enter the wildcard

    Type the wildcard, such as 0.0.254.255.

  3. Enter test addresses

    Paste 1 or more addresses to test.

  4. Compare the care bits

    For each address, the calculator clears the wildcard bits in both values and checks for equality.

ACL Wildcard Match Calculator Formula

The formula is Match = (Address AND NOT Wildcard) = (Base AND NOT Wildcard).

Care bits

C = NOT W

Bit positions that must match.

Match test

(A AND C) = (B AND C)

True when every care bit matches.

Matching address count

2^(number of 1 bits in W)

For 0.0.254.255: 2^15 = 32,768.

Worked example: 192.168.0.0 0.0.254.255

Octet 3 wildcard 254 = 11111110 → only the last bit is checked
Base octet 3 = 0 → last bit must be 0 (even)
192.168.4.10 → 4 is even  → match
192.168.5.10 → 5 is odd   → no match
10.168.4.10  → octet 1 differs → no match

ACL Wildcard Match Calculator Conversion Table

The table tests 10 addresses against 192.168.0.0 0.0.254.255, a rule that matches even third octets in 192.168.0.0/16.

Test AddressOctet 3 BinaryResult
192.168.0.100000000Match
192.168.1.100000001No match
192.168.2.20000000010Match
192.168.3.20000000011No match
192.168.100.501100100Match
192.168.101.501100101No match
192.168.254.911111110Match
192.168.255.911111111No match
192.169.0.100000000No match
10.168.4.1000000100No match

What is ACL Wildcard Match Calculator?

The ACL Wildcard Match Calculator is a tool that tests whether an IPv4 address matches an ACL entry written as a base address and a wildcard mask.

Wildcard masks tell a router which bits to check and which bits to ignore. A 0 in the wildcard means the bit must match the base address. A 1 means any value is accepted. Contiguous wildcards match subnets, and non-contiguous wildcards match patterns such as "all even subnets".

Non-contiguous patterns are hard to read by eye. The calculator shows the binary comparison for each address, which removes guesswork from ACL reviews.

What are the uses of ACL Wildcard Match Calculator?

There are 4 main uses of the ACL Wildcard Match Calculator, including ACL testing, pattern rules, and security reviews.

  • Testing ACL entries before deployment

    Engineers confirm that a new entry matches the intended hosts and no others.

  • Building pattern-based rules

    Rules such as "every .1 gateway in 10.0.0.0/8" use 10.0.0.1 0.255.255.0.

  • Reviewing inherited ACLs

    Old ACLs with odd wildcards are tested address by address.

  • Explaining OSPF network statements

    The calculator shows which interface addresses an OSPF wildcard selects.