CIDR Notation
Also known as: CIDR, Classless Inter-Domain Routing
A compact way to describe an IP address range, written as an address followed by a slash and a prefix length like 192.0.2.0/24.
Last updated:
What is CIDR notation?
CIDR notation (Classless Inter-Domain Routing) is the standard way to describe a range of IP addresses. It consists of an IP address followed by a slash and a prefix length — a number that specifies how many of the leading bits are fixed for the network portion. For example:
192.0.2.0/24— a range of 256 IPv4 addresses (192.0.2.0through192.0.2.255)10.0.0.0/8— about 16.7 million addresses (the whole10.x.x.xprivate range)2001:db8::/32— an IPv6 range of 2⁹⁶ addresses
Introduced in RFC 4632, CIDR replaced the older class-based system (Class A, B, C), which wasted enormous amounts of address space by forcing allocations to power-of-2 boundaries.
How the prefix length works
The prefix length is the count of network bits from the left. In IPv4, a /24 means 24 network bits and 8 host bits (256 addresses). A /16 means 16 network bits and 16 host bits (65,536 addresses). The smaller the number, the larger the block:
| Prefix | IPv4 Host Count | Equivalent Subnet Mask |
|--------|----------------:|------------------------|
| /8 | 16,777,216 | 255.0.0.0 |
| /16 | 65,536 | 255.255.0.0 |
| /24 | 256 | 255.255.255.0 |
| /30 | 4 | 255.255.255.252 |
Where CIDR is used
CIDR notation appears throughout networking: firewall rules (allow 203.0.113.0/24), routing tables, ASN prefix announcements, cloud provider allow-lists, geolocation databases, and abuse reports. Our CIDR to IP range tool converts CIDR blocks to explicit start/end addresses for firewall configuration.