CIDR Calculator
IP Address / CIDR
Network Information
Binary Representation
| Network: | - |
| Mask: | - |
About CIDR Notation
CIDR (Classless Inter-Domain Routing) is a method for allocating IP addresses and routing that replaces the older classful network design. CIDR notation represents an IP address and its associated routing prefix with a slash (/) followed by the prefix length.
For example, 192.168.1.0/24 represents the network with:
- Network address: 192.168.1.0
- Subnet mask: 255.255.255.0 (24 bits set to 1)
- 256 total addresses (192.168.1.0 - 192.168.1.255)
- 254 usable host addresses (excluding network and broadcast)
Common CIDR Notations
| CIDR | Subnet Mask | Wildcard Mask | Total IPs | Usable Hosts |
|---|---|---|---|---|
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2* |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
Private IP Address Ranges (RFC 1918)
These address ranges are reserved for private networks and are not routable on the public Internet:
10.0.0.0/8- 10.0.0.0 to 10.255.255.255 (16,777,216 addresses)172.16.0.0/12- 172.16.0.0 to 172.31.255.255 (1,048,576 addresses)192.168.0.0/16- 192.168.0.0 to 192.168.255.255 (65,536 addresses)
Special-Use IPv4 Addresses
0.0.0.0/8- Current network (only valid as source address)127.0.0.0/8- Loopback addresses (127.0.0.1 is localhost)169.254.0.0/16- Link-local addresses (APIPA - Automatic Private IP Addressing)224.0.0.0/4- Multicast addresses (224.0.0.0 to 239.255.255.255)240.0.0.0/4- Reserved for future use (240.0.0.0 to 255.255.255.255)255.255.255.255/32- Broadcast address for current network
IPv4 Address Classes (Legacy)
Before CIDR, IPv4 addresses were allocated using classful networking:
- Class A: 0.0.0.0 to 127.255.255.255 (1.0.0.0 to 126.0.0.0 usable, /8 networks)
- Class B: 128.0.0.0 to 191.255.255.255 (128.0.0.0 to 191.255.0.0 usable, /16 networks)
- Class C: 192.0.0.0 to 223.255.255.255 (192.0.0.0 to 223.255.255.0 usable, /24 networks)
- Class D: 224.0.0.0 to 239.255.255.255 (Multicast)
- Class E: 240.0.0.0 to 255.255.255.255 (Reserved)
Feedback
Help us improve this page by providing feedback:
Sending...
Feedback sent. Thank you!
Error occurred!