CIDR Notation Explained: What /24 Means
You will often see an address followed by a slash and a number, such as 203.0.113.0/24. That is a range of addresses written in CIDR notation, and once you know what the number means, you can read any of them at a glance.
The number after the slash says how many bits are fixed. The rest are free, so a smaller number means a bigger range.
Addresses are made of bits
An IPv4 address like 203.0.113.42 is really 32 binary digits, written as four numbers from 0 to 255 (each one is 8 bits). The internet does not hand out addresses one at a time. It hands out blocks, and a block is described by how many of the first bits are fixed.
Reading the slash
203.0.113.0/24 means: the first 24 bits are fixed (that is 203.0.113), and the last 8 bits can be anything. So the range covers 203.0.113.0 to 203.0.113.255: 256 addresses.
| Written | Addresses | Roughly |
|---|---|---|
/32 | 1 | A single address |
/30 | 4 | A link between two routers |
/24 | 256 | A small network, the smallest block that is normally announced on the internet |
/16 | 65,536 | A large network |
/8 | 16,777,216 | A huge block |
The pattern: every step down by one in the number doubles the size. A /23 is two /24s, a /22 is four.
IPv6 works the same way, with 128 bits
In IPv6 the address has 128 bits, so the numbers are larger. A /64 is the standard size of one local network (more addresses than you could use in a lifetime), a /48 is typically given to a household or small business, and a /32 is typically given to a provider. 2606:4700::/32 is a block held by Cloudflare.
Why an address with a slash can be "wrong"
If you write 203.0.113.77/24, the last part does not fit the fixed bits, because /24 means the last 8 bits are free. The range it really means starts at 203.0.113.0. On this site, typing it takes you to the page for 203.0.113.0/24, so every range has exactly one page and one address.
Using ranges on this site
- Type a range into the search box, such as
8.8.8.0/24, or a start and end such as8.8.8.0 - 8.8.8.255(it works when the two are exactly one range). - Every range shown in the Network tab, and in the comparison, is a link to its page.
- A range's page shows what it covers, who announces it, and the ranges around it.
Related: what an AS number is, what an IP address is and the help page.