← All text tools

Wildcard Mask Calculator

Convert between CIDR prefix, subnet mask and wildcard mask for Cisco access lists and OSPF, and get ready-to-paste configuration lines.

  • Free
  • No sign-up
  • Works on any device

About Wildcard Mask Calculator

Cisco access lists and OSPF network statements use wildcard masks, which are the subnet mask turned inside out: a 0 bit must match and a 1 bit is ignored. Convert in either direction by typing a CIDR prefix, a subnet mask or a wildcard. For 255.255.255.192 the wildcard is 0.0.0.63, and with the network 192.168.10.64 you get ready-to-paste lines for a standard ACL, an extended ACL and an OSPF network command. A table from /8 to /32 sits below for quick lookups.

How to use Wildcard Mask Calculator

  1. Type a prefix, subnet mask or wildcard mask, or let the tool detect which it is.
  2. Optionally add the network address to fill in the configuration lines.
  3. Copy the access-list or network line into your device configuration.

Why use this tool?

Also known as

Frequently asked questions

How do I convert a subnet mask to a wildcard mask by hand?

Subtract each octet of the subnet mask from 255. For 255.255.255.192 that gives 0.0.0.63, because 255 minus 192 is 63.

What if my wildcard has gaps in it?

Cisco allows wildcards such as 0.0.0.5 that match scattered addresses. They do not describe one CIDR block, so the tool shows the mask but no prefix and warns you.

How does automatic detection tell a mask from a wildcard?

A dotted value that starts with 0 is read as a wildcard, and one that starts with a larger number is read as a subnet mask. Pick the type yourself for 0.0.0.0 or 255.255.255.255 if you need to be sure.

Is Wildcard Mask Calculator free?

Yes. Wildcard Mask Calculator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools