CIDR Table
CIDR reference table from /0 to /32 with mask, wildcard, number of addresses, usable hosts, hex and class. Filter live by prefix or by mask. Includes the reserved and private ranges worth keeping at hand. Nothing is sent to any server.
CIDR table · 33 rows
| CIDR | Mask | Wildcard | Addresses | Hosts | Hex | Class |
|---|
No prefix matches the filter. Clear the field to see the whole table.
Reserved and private ranges
| Block | Addresses | Use | Reference |
|---|
How each column is computed
1. The mask has n
bits set to 1 followed by 32 − n bits set to 0. The
wildcard is its complement (the inverted bits).
2. number of addresses = 2^(32 − n).
It counts the whole network, including network and broadcast.
3. usable hosts = 2^(32 − n) − 2
(network and broadcast are subtracted) for n ≤ 30.
On /31 it is 2 (RFC 3021, point-to-point
links) and on /32 it is 1 (single host).
4. The class is a guide only:
classful addressing was deprecated by CIDR, but /8,
/16 and /24 echo classes A, B and C.
Runs locally in your browser · no sign-up · nothing leaves your browser.
How it works
It is a reference table with all 33 IPv4 prefixes, from /0 to /32. For each one it shows the dotted-decimal mask, the wildcard (the inverted mask used by Cisco ACLs and OSPF), the total number of addresses, the usable hosts, the mask in hexadecimal and the approximate historical class. You can filter live by typing a prefix (/24 or 24), a mask or a wildcard, and clicking a row gives you its full record ready to copy.
Every column comes from the binary arithmetic of the prefix: the mask has n ones followed by zeros, the total address count is 2^(32−n) and the usable hosts are 2^(32−n) − 2 (subtracting network and broadcast), with the exceptions of /31 (2 hosts, point-to-point links per RFC 3021) and /32 (1 host). It also includes the table of reserved and private ranges: RFC 1918, CGNAT (RFC 6598), loopback, link-local and multicast.
Example: reading the /26 row
- Mask: 26 ones →
255.255.255.192; wildcard: the remaining 6 bits →0.0.0.63. - Total addresses:
2^(32−26) = 64. - Usable hosts: 64 − 2 = 62; in hexadecimal the mask is
0xffffffc0.