CIDR to Wildcard Mask Converter
Convert a CIDR mask (/n) into a wildcard mask, the format used in Cisco router ACLs. An essential tool for network administration and configuration.
Wildcard
—
Netmask and wildcard from a prefix length
A wildcard mask is the subnet mask inverted bit by bit. Where the mask has a 1, the wildcard has a 0, and the other way round. It exists because Cisco gear uses that form in access lists: instead of writing 255.255.255.0, the ACL wants 0.0.0.255. Anyone juggling both formats in the same afternoon eventually swaps one for the other, and the ACL starts permitting a great deal more — or a great deal less — than intended.
Enter just the prefix length, from 0 to 32, and the page returns both forms at once: the subnet mask and the matching wildcard. A /24 gives mask 255.255.255.0 and wildcard 0.0.0.255. A /30, common on point-to-point links, gives 255.255.255.252 and 0.0.0.3. And a /32, which identifies a single host, gives 255.255.255.255 with wildcard 0.0.0.0.
It helps to keep the meanings apart: in a mask, the bits set to 1 mark the fixed part of the address; in a wildcard, the bits set to 1 mark the part that may vary — the bits the device should ignore when matching. Some platforms also accept discontiguous wildcards for odd/even matching, but those do not come out of a CIDR prefix and are not generated here.
Frequently asked questions
Are wildcard and inverse mask the same thing?
Which wildcard matches a single host?
Why does /31 show mask 255.255.255.254?
Related Tools
Binary ↔ Hexadecimal Converter
Convert numbers between binary and hexadecimal without going through decimal. Shows nibble (4-bit) grouping.
Bar to PSI Converter
Convert pressure from bar to PSI (pounds per square inch) instantly. Useful for tires, compressors, gauges and equipment using the imperial system.
L/100km to MPG Converter
Convert fuel economy from liters per 100 km to miles per gallon (MPG). Compare car efficiency between the European and US standards.
dBV to Volts RMS Converter
Convert a level in dBV to RMS voltage against the 1 V reference: V = 10^(dBV/20). Consumer line level, −10 dBV, is 0.316 V — which is not the same as dBu.
Cents Difference Calculator
Calculate the difference in cents (hundredths of a semitone) between two frequencies. An essential tool for fine instrument tuning, microtonality and music study.
BSON to JSON (text) Converter
Explains differences between binary BSON and JSON with a type table and textual conversion examples.