Binarios.org

Home › Networking Tools › Wildcard Mask Calculator

IPv4 Wildcard Mask Calculator

Calculate an IPv4 wildcard mask from a subnet mask or CIDR prefix. View the network and broadcast addresses, binary representations, and sample Cisco ACL and OSPF configuration statements.

Calculate a Wildcard Mask

Enter an IPv4 address and either a CIDR prefix (/24) or a dotted subnet mask (255.255.255.0).

Example: 192.168.1.70

Examples: /24, 24, 255.255.255.0

Reset Diagnostics Run self-tests

Calculator Self-Tests

These tests exercise the PHP calculation functions independently of the web form.

Test input Status Expected wildcard, network Actual wildcard, network
192.168.1.70 /24 PASS 0.0.0.255, 192.168.1.0 0.0.0.255, 192.168.1.0
192.168.1.70 /26 PASS 0.0.0.63, 192.168.1.64 0.0.0.63, 192.168.1.64
10.20.30.40 /8 PASS 0.255.255.255, 10.0.0.0 0.255.255.255, 10.0.0.0
10.10.10.5 /32 PASS 0.0.0.0, 10.10.10.5 0.0.0.0, 10.10.10.5
172.16.5.10 255.255.0.0 PASS 0.0.255.255, 172.16.0.0 0.0.255.255, 172.16.0.0
0.0.0.0 /0 PASS 255.255.255.255, 0.0.0.0 255.255.255.255, 0.0.0.0

Passed: 6 / 6

Common Wildcard Mask Examples

CIDR Subnet mask Wildcard mask Total addresses
/8255.0.0.00.255.255.25516,777,216
/16255.255.0.00.0.255.25565,536
/24255.255.255.00.0.0.255256
/25255.255.255.1280.0.0.127128
/26255.255.255.1920.0.0.6364
/27255.255.255.2240.0.0.3132
/30255.255.255.2520.0.0.34
/32255.255.255.2550.0.0.01

Frequently Asked Questions

What is a wildcard mask?

A wildcard mask identifies which IPv4 address bits a networking configuration should match. It is commonly used in Cisco ACLs and routing protocol network statements.

What is the wildcard mask for /24?

The wildcard mask is 0.0.0.255, corresponding to subnet mask 255.255.255.0.

Can I enter a dotted subnet mask?

Yes. Enter a mask such as 255.255.255.192 or a CIDR prefix such as /26.

Why are there 256 addresses in a /24?

An IPv4 /24 leaves eight host bits. There are 28 = 256 total addresses in that block.

Related Networking and Binary Tools