Enter a subnet mask in any format — dotted decimal, CIDR, wildcard, or binary — and instantly see all equivalents.
Enter a subnet mask in any format to see all equivalents
The table below shows the most frequently used subnet masks across all four formats. Use the converter above to look up any mask not listed here.
| CIDR | Dotted Decimal | Wildcard |
|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 |
| /16 | 255.255.0.0 | 0.0.255.255 |
| /24 | 255.255.255.0 | 0.0.0.255 |
| /25 | 255.255.255.128 | 0.0.0.127 |
| /26 | 255.255.255.192 | 0.0.0.63 |
| /27 | 255.255.255.224 | 0.0.0.31 |
| /28 | 255.255.255.240 | 0.0.0.15 |
| /30 | 255.255.255.252 | 0.0.0.3 |
| /32 | 255.255.255.255 | 0.0.0.0 |
A subnet mask can be written in four different but equivalent formats. Understanding each one is essential for configuring routers, firewalls, and access control lists.
The most familiar format — four octets separated by dots, e.g. 255.255.255.0. Each octet is a decimal number from 0 to 255 representing 8 bits. Network bits are set to 1 and host bits are set to 0.
A compact notation that counts the number of leading 1-bits in the mask, written after a slash — e.g. /24 means the first 24 bits are network bits. This is the format used in routing tables and cloud platform networking consoles.
The bitwise inverse of the subnet mask — 0s where the subnet mask has 1s and vice versa. For 255.255.255.0 the wildcard is 0.0.0.255. Wildcard masks are used in Cisco ACLs, OSPF area definitions, and NAT configuration.
The raw 32-bit representation with dots between each octet, e.g. 11111111.11111111.11111111.00000000. Binary is the most explicit format and is useful for understanding how subnetting actually works — each 1 marks a network bit and each 0 marks a host bit.
Valid subnet masks must be contiguous — all 1-bits appear on the left and all 0-bits on the right, with no gaps. A mask like 255.0.255.0 is invalid because the 1s are not contiguous. Non-contiguous masks are rejected by most routers and operating systems.
DMC IT Services designs and manages cloud and on-premises network infrastructure for SMBs across London, Cambridge, Hertfordshire, and Bedfordshire — from IP addressing and VLAN planning through to Microsoft 365 and Azure deployments.
Talk to an Engineer