Subnet to Wildcard Mask Calculator

Convert a subnet mask to the wildcard mask used in Cisco ACLs and OSPF, or back again, and get the CIDR prefix, binary forms and host count.

About the Subnet to Wildcard Mask Calculator

A wildcard mask is the bitwise inverse of a subnet mask, used by router access lists and OSPF network statements. This calculator converts a subnet mask to a wildcard, a wildcard to a subnet mask, or a CIDR prefix to both, and shows the binary forms and host counts. It runs in your browser.

How to Use the Subnet to Wildcard Mask Calculator

  1. Choose a direction: Subnet Mask to Wildcard, Wildcard to Subnet Mask, or CIDR to Both.
  2. Enter the mask or prefix, or tap a shortcut such as /24.
  3. Press Convert.
  4. Copy the wildcard mask into your ACL or OSPF statement, and check the binary view if you need to verify it.