CIDR calculator
Convert CIDR notation to an IP range, or turn any start–end range into the smallest set of CIDR blocks for firewall rules, security groups and allow-lists.
| Block | 10.20.0.0/14 |
|---|---|
| First IP | 10.20.0.0 |
| Last IP | 10.23.255.255 |
| Total addresses | 262,144 |
| Usable hosts | 262,142 (10.20.0.1 – 10.23.255.254) |
| Mask · wildcard | 255.252.0.0 · 0.3.255.255 |
| /24s inside | 1,024 |
Why ranges break into several blocks
A CIDR block always covers a power-of-two number of addresses and must start on a multiple of that size. An arbitrary range rarely lines up, so it's covered by a staircase of blocks: small ones to reach the next boundary, the biggest ones that fit in the middle, then small ones again to finish exactly on the last address. Try 10.0.0.1 to 10.0.0.254: fourteen blocks, because the range just misses both ends of a /24.
Cloud providers publish their own ranges as CIDR lists (AWS's ip-ranges.json, Google's cloud.json, Cloudflare's /ips-v4). For network, broadcast and host range of a single block see the subnet calculator, and for Cisco-style inverse masks the wildcard mask calculator.