Wildcard Mask Calculator – Convert Subnet Masks Instantly

April 22, 2026

🌐 Wildcard Mask Calculator

Instantly convert subnet masks to wildcard masks, calculate CIDR ranges, and plan ACL configurations

⚡ Quick Presets
📝 Input Mode
CIDR Notation e.g. /24
Subnet Mask e.g. 255.255.255.0
Wildcard Mask e.g. 0.0.0.255
✅ Calculation Results
📊 CIDR & Wildcard Reference Grid
/24
0.0.0.255
254 Usable Hosts
/25
0.0.0.127
126 Usable Hosts
/26
0.0.0.63
62 Usable Hosts
/28
0.0.0.15
14 Usable Hosts
/30
0.0.0.3
2 Hosts (P2P Link)
/16
0.0.255.255
65,534 Hosts
/8
0.255.255.255
16,777,214 Hosts
/32
0.0.0.0
1 Host (Single)
📋 Complete Subnet & Wildcard Mask Table
CIDR Subnet Mask Wildcard Mask Total IPs Usable Hosts Common Use
/8255.0.0.00.255.255.25516,777,21616,777,214Class A / Large ISP
/12255.240.0.00.15.255.2551,048,5761,048,574RFC 1918 Private (172.16)
/16255.255.0.00.0.255.25565,53665,534Campus / Enterprise
/20255.255.240.00.0.15.2554,0964,094Mid-size VLAN
/22255.255.252.00.0.3.2551,0241,022Multi-floor VLAN
/23255.255.254.00.0.1.255512510Medium Office
/24255.255.255.00.0.0.255256254Standard LAN / Home
/25255.255.255.1280.0.0.127128126Half-subnet Split
/26255.255.255.1920.0.0.636462Small Department
/27255.255.255.2240.0.0.313230Small Team
/28255.255.255.2400.0.0.151614Small VLAN / DMZ
/29255.255.255.2480.0.0.786Server Cluster
/30255.255.255.2520.0.0.342Point-to-Point Link
/31255.255.255.2540.0.0.122*P2P (RFC 3021)
/32255.255.255.2550.0.0.011Host Route / Loopback
🔧 ACL Wildcard Standards & Use Cases
ACL Match Goal IP Address Wildcard Mask Cisco ACL Syntax
Match single host192.168.1.100.0.0.0host 192.168.1.10
Match any host0.0.0.0255.255.255.255any
Match /24 subnet192.168.1.00.0.0.255192.168.1.0 0.0.0.255
Match /16 block10.10.0.00.0.255.25510.10.0.0 0.0.255.255
Match odd octets0.0.0.10.0.0.2540.0.0.1 0.0.0.254
Match even octets0.0.0.00.0.0.2550.0.0.0 0.0.0.254
RFC 1918 Class A10.0.0.00.255.255.25510.0.0.0 0.255.255.255
RFC 1918 Class C192.168.0.00.0.255.255192.168.0.0 0.0.255.255
📁 Common Project Network Sizes
Project / Scenario Recommended CIDR Wildcard Mask Usable Hosts Subnet Mask
Home Lab (Proxmox / VMs)/240.0.0.255254255.255.255.0
Small Office (10-30 users)/270.0.0.3130255.255.255.224
Mid-size Office (50-100)/250.0.0.127126255.255.255.128
Enterprise (200-500 users)/230.0.1.255510255.255.254.0
DMZ / Guest WiFi/280.0.0.1514255.255.255.240
IoT Segment/260.0.0.6362255.255.255.192
Server VLAN/290.0.0.76255.255.255.248
WAN / P2P Uplink/300.0.0.32255.255.255.252
💡 Wildcard vs Subnet Mask: A wildcard mask is the bitwise inverse (complement) of a subnet mask. To convert: subtract each octet of the subnet mask from 255. For example, 255.255.255.0 becomes 0.0.0.255. Wildcard masks are used in Cisco ACLs and OSPF configurations — a bit value of 0 means "must match" and 1 means "ignore."
💡 OSPF Wildcard Tip: In OSPF network statements, the wildcard mask identifies which interfaces participate in the OSPF process. Use the exact inverse of your subnet mask (e.g. network 192.168.1.0 0.0.0.255 area 0). For a /30 link, use wildcard 0.0.0.3. For a loopback (/32), always use wildcard 0.0.0.0.

A wildcard mask is made up of 32 bits, that commonly appears in network connections. It seems a bit like a subnet mask at first look, four numbers separated by dots and shared in four octets, but here ends the likeness. The main difference lies in its function: it points to routers, what parts of an IP address one considers and what to simply ignore.

Here is how the math works. If in a wildcard mask appears a 0-bit, that requires that the matching bit in the IP address matches exactly. On the other hand, a 1-bit allows any value here, it simply does not matter what happens.

What is a wildcard mask?

Like this, a wildcard mask of 0.0.0.255 points only to the last eight bits. The three first octets must match perfectly, while the final octet can be anything.

One meets wildcard masks most commonly during work with access control lists or ACLs. They also matter in routing protocols, for instance OSPF. During work with OSPF, the network command together with a wildcard mask explains to the router what interfaces should use OSPF flooding.

When the IP address of an interface matches with the network address and the wildcard mask, it activaets, the interface enters in the routing protocol. Then it starts to send hello packets and search for neighbours.

What surprises about wildcard masks is that they do not always have to be continuous. Subnet masks? Those always have all ones first, then all zeros.

Wildcard masks break that rule, the ones and zeros can arrange in various patterns. That flexibility makes them better for particular or unusual comparisons. For instance, a wildcard mask of 0.0.0.254 wood allow matching only even-numbered IP addresses.

Here is a handy conversion trick: simply subtract every octet from 255. Like this a subnet mask of 255.255.255.0 turns into a wildcard mask of 0.0.0.255. Also, if you wonder what numbers count for an octet in a wildcard mask, that is only 1, 3, 7, 15, 31, 63, 127 and 255.

Want to match only one exact IP address? Then your wildcard mask will be 0.0.0.0, every bit must match perfectly. Instead of writing that out, you can use the keyword “host” with it.

Saying “host 192.168.1.1” does the same as “192.168.1.1 0.0.0.0.”

Basically, a wildcard mask is the bit reverse of a subnet mask. While a subnet mask separates the network part from the host part, a wildcard mask simply points to the router what to mind and what to skip. Picture this: an admin wants to block all traffic from the network 172.16.56.0.

Rather than filter addresses one after the other, a wildcard mask covers the whole range in one step. Subnet calculators can help a lot here (they take an IP address and a netmask), and give thewildcard mask result.

Wildcard masks work also with MAC addresses, where they show what hex figures matter and what ones to ignore. Every figure in the mask matches with a figure in the MAC address, and such masks are 12 figures long.

Wildcard Mask Calculator – Convert Subnet Masks Instantly

Related posts

Leave a Comment