CIDR to IP Range Explained
CIDR notation describes an IP network using an address and a prefix length.
Example:
10.0.0.0/24
The /24 means the first 24 bits identify the network. The remaining 8 bits are available for addresses inside that range.
For a quick conversion, use the CIDR to IP Range Calculator.
Example: 10.0.0.0/24
A /24 contains 256 total IPv4 addresses.
For 10.0.0.0/24:
| Field | Value |
|---|---|
| Network address | 10.0.0.0 |
| First usable IP | 10.0.0.1 |
| Last usable IP | 10.0.0.254 |
| Broadcast address | 10.0.0.255 |
| Subnet mask | 255.255.255.0 |
| Total IPs | 256 |
| Classic usable hosts | 254 |
Classic IPv4 subnetting reserves the network and broadcast addresses.
Cloud platforms reserve additional addresses, so Azure, AWS, and Google Cloud usable counts are lower.
CIDR Prefix Size
The prefix controls the size of the range.
| CIDR | Total IPs | Classic usable hosts |
|---|---|---|
/30 | 4 | 2 |
/29 | 8 | 6 |
/28 | 16 | 14 |
/27 | 32 | 30 |
/26 | 64 | 62 |
/25 | 128 | 126 |
/24 | 256 | 254 |
/23 | 512 | 510 |
/22 | 1024 | 1022 |
/21 | 2048 | 2046 |
/20 | 4096 | 4094 |
Every time the prefix gets one number smaller, the address space doubles.
CIDR to IP Range vs IP Range to CIDR
Use CIDR to IP range when you already have CIDR notation and want to see what it contains.
Use IP Range to CIDR when you have a start and end address and need the matching CIDR block list.
They are reverse operations:
10.0.0.0/24->10.0.0.0 - 10.0.0.25510.0.0.0 - 10.0.0.255->10.0.0.0/24
Uneven ranges may require multiple CIDR blocks.