CIDR Subnet Mask Cheat Sheet
We know it can be pain trying to remember which CIDR notation to use or what subnet mask to enter for a specific subnet. That’s why we created this awesome looking IPv4 CIDR cheat sheet for you to use.
Feel free to print it out and hang it up or share a link to it with your colleagues and peers.
Need a better IPAM? Check out ManageEngine OpUtils to efficiently discover, track and allocate IP addresses from an easy-to-use, centralized console.
Free CIDR Subnet Mask Cheat Sheet

Click on the subnet mask chart to view the printable, searchable PDF version. Scroll down below for the CIDR subnet mask tables.
Related: Common Ports Cheat Sheet
IPv4 Subnets
An IPv4 subnet is a division of the IPv4 address space used to create smaller, interconnected networks within a larger network. It involves dividing the available IP addresses into subnetworks or subnets, each with its own unique range of addresses.
Subnetting allows for efficient allocation of IP addresses, improves network scalability and management, and enables logical segmentation of networks. Subnets are defined by combining an IP address with a subnet mask, which determines the network and host portions of the address.
| CIDR | SUBNET MASK | ADDRESSES | WILDCARD |
|---|---|---|---|
| /0 | 0.0.0.0 | 4294967296 | 255.255.255.255 |
| /1 | 128.0.0.0 | 2147483648 | 127.255.255.255 |
| /2 | 192.0.0.0 | 1073741824 | 63.255.255.255 |
| /3 | 224.0.0.0 | 536870912 | 31.255.255.255 |
| /4 | 240.0.0.0 | 268435456 | 15.255.255.255 |
| /5 | 248.0.0.0 | 134217728 | 7.255.255.255 |
| /6 | 252.0.0.0 | 67108864 | 3.255.255.255 |
| /7 | 254.0.0.0 | 33554432 | 1.255.255.255 |
| /8 | 255.0.0.0 | 16777216 | 0.255.255.255 |
| /9 | 255.128.0.0 | 8388608 | 0.127.255.255 |
| /10 | 255.192.0.0 | 4194304 | 0.63.255.255 |
| /11 | 255.224.0.0 | 2097152 | 0.31.255.255 |
| /12 | 255.240.0.0 | 1048576 | 0.15.255.255 |
| /13 | 255.248.0.0 | 524288 | 0.7.255.255 |
| /14 | 255.252.0.0 | 262144 | 0.3.255.255 |
| /15 | 255.254.0.0 | 131072 | 0.1.255.255 |
| /16 | 255.255.0.0 | 65536 | 0.0.255.255 |
| /17 | 255.255.128.0 | 32768 | 0.0.127.255 |
| /18 | 255.255.192.0 | 16384 | 0.0.63.255 |
| /19 | 255.255.224.0 | 8192 | 0.0.31.255 |
| /20 | 255.255.240.0 | 4096 | 0.0.15.255 |
| /21 | 255.255.248.0 | 2048 | 0.0.7.255 |
| /22 | 255.255.252.0 | 1024 | 0.0.3.255 |
| /23 | 255.255.254.0 | 512 | 0.0.1.255 |
| /24 | 255.255.255.0 | 256 | 0.0.0.255 |
| /25 | 255.255.255.128 | 128 | 0.0.0.127 |
| /26 | 255.255.255.192 | 64 | 0.0.0.63 |
| /27 | 255.255.255.224 | 32 | 0.0.0.31 |
| /28 | 255.255.255.240 | 16 | 0.0.0.15 |
| /29 | 255.255.255.248 | 8 | 0.0.0.7 |
| /30 | 255.255.255.252 | 4 | 0.0.0.3 |
| /31 | 255.255.255.254 | 2 | 0.0.0.1 |
| /32 | 255.255.255.255 | 1 | 0.0.0.0 |
See also RFC1878
Classful Ranges
A classful range refers to a predefined range of IP addresses based on the original classful addressing scheme. The classful addressing scheme divides the IPv4 address space into five classes: A, B, C, D, and E. Each class has a specific range of IP addresses and a default mask associated with it. Classful ranges are characterized by fixed network and host portions based on the class with Class A having the largest network portion and Class C having the smallest.
Classful addressing has been largely replaced by classless inter-domain routing (CIDR), which allows for more flexible allocation of IP addresses by using variable-length subnet masks (VLSM).
| Class Name | IP Range |
|---|---|
| Class A | 0.0.0.0 – 127.255.255.255 |
| Class B | 128.0.0.0 – 191.255.255.255 |
| Class C | 192.0.0.0 – 223.255.255.255 |
| Class D | 224.0.0.0 – 239.255.255.255 |
| Class E | 240.0.0.0 – 254.255.255.254 |
Reserved Ranges
Reserved ranges are specific blocks of IP addresses that are designated for special purposes and are not available for general allocation or public use. These reserved ranges include private IP address ranges, loopback addresses, link-local addresses, and multicast addresses.
| Range Name | IP Range |
|---|---|
| RFC 1918 | 10.0.0.0 – 10.255.255.255 |
| Localhost | 127.0.0.0 – 127.255.255.255 |
| APIPA/BONJOUR | 169.254.0.0 – 169.254.255.255 |
| RFC 1918 | 172.16.0.0 – 172.31.255.255 |
| RFC 1918 | 192.168.0.0 – 192.168.255.255 |
See also RFC1918
Bogon IPv4 Addresses and Ranges
Bogon addresses are IP addresses or address blocks that are invalid, unallocated, or not globally routable. Bogon addresses include IP addresses that should not appear on the internet and are commonly used in spoofing or malicious activities. These addresses may include reserved IP ranges, multicast addresses, or addresses that have not been assigned by the Internet Assigned Numbers Authority (IANA) or regional Internet registries.
| Netblock | Description |
|---|---|
| 0.0.0.0/8 | “This” network |
| 10.0.0.0/8 | Private-use networks |
| 100.64.0.0/10 | Carrier-grade NAT |
| 127.0.0.0/8 | Loopback |
| 127.0.53.53 | Name collision occurrence |
| 169.254.0.0/16 | Link local |
| 172.16.0.0/12 | Private-use networks |
| 192.0.0.0/24 | IETF protocol assignments |
| 192.0.2.0/24 | TEST-NET-1 |
| 192.168.0.0/16 | Private-use networks |
| 198.18.0.0/15 | Network interconnect device benchmark testing |
| 198.51.100.0/24 | TEST-NET-2 |
| 203.0.113.0/24 | TEST-NET-3 |
| 224.0.0.0/4 | Multicast |
| 240.0.0.0/4 | Reserved for future use |
