CIDR to IP Range Converter — Network, Broadcast and Host Count
Expand any /0–/32 CIDR notation into network, broadcast & total host count.
| Input | Network | Usable hosts | Broadcast | Total addresses | Usable | Mask |
|---|---|---|---|---|---|---|
192.168.10.0/24 | 192.168.10.0 | 192.168.10.1 – 192.168.10.254 | 192.168.10.255 | 256 | 254 | 255.255.255.0 |
10.20.0.0/22 | 10.20.0.0 | 10.20.0.1 – 10.20.3.254 | 10.20.3.255 | 1,024 | 1,022 | 255.255.252.0 |
172.16.5.130/26host bits set — treated as 172.16.5.128/26 | 172.16.5.128 | 172.16.5.129 – 172.16.5.190 | 172.16.5.191 | 64 | 62 | 255.255.255.192 |
100.64.0.0/31 | 100.64.0.0 | 100.64.0.0 – 100.64.0.1 | — | 2 | 2 | 255.255.255.254 |
203.0.113.7/32 | 203.0.113.7 | 203.0.113.7 – 203.0.113.7 | — | 1 | 1 | 255.255.255.255 |
2001:db8:abcd::/48 | 2001:db8:abcd:: | 2001:db8:abcd::1 – 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff | — | 2^80 | 2^79 | — |
When to use the CIDR Block to First–Last Usable IP Range Converter
Every key number at once
Every block shows its network address, usable host range, broadcast, total addresses, host count and subnet mask, so DHCP or firewall settings need no manual maths. Enter many blocks at once, one per line, then copy or download the result as text.
The right /31 and /32 rules
A /31 for point-to-point links uses both addresses per RFC 3021, and a /32 is a single host. Older calculators often wrongly report zero hosts for both.
IPv4 and IPv6
IPv6 blocks such as 2001:db8:abcd::/48 are computed too, with huge address counts written as powers of two so they stay readable.
Wrong host bits flagged
Entries such as 172.16.5.130/26 get a note that host bits are set and are treated as 172.16.5.128/26, a mistake that often breaks ACLs.
Frequently asked questions
How many hosts does a /24 have?
256 addresses in total and 254 hosts, because the network and broadcast addresses are not used by devices.
How is the address count worked out?
The address count is 2 to the power of (32 minus the prefix). For example a /22 holds 2 to the 10th, that is 1,024 addresses.
Does IPv6 have broadcast?
No. IPv6 uses multicast instead, so the broadcast column stays empty. The first address of a subnet is the Subnet-Router anycast address (RFC 4291) and is not given to hosts, except in a /127 or /128.
How do I go from a range to CIDR?
Use the IP Range to CIDR converter to turn a start and end address into a minimal CIDR list.
Is my data sent to a server?
No. Everything is computed in your browser, so your internal addressing plan stays private.
Similar tools
- First–Last IP Range to Minimal Covering CIDR ConverterConvert start–end IPv4 boundaries into exact minimal CIDR prefixes for ACLs.
- CIDR Exclusion & WireGuard AllowedIPs BuilderSubtract LAN or private ranges from 0.0.0.0/0 or any block and get the minimal CIDR list for WireGuard, routing or MikroTik.
- CIDR & IP Range to Full Address List ExpanderExpand IPv4/IPv6 CIDRs and start–end ranges into every individual address, ready to export as TXT for scanners and ACLs.
- IP / CIDR List Diff & Allowlist AuditorCompare two IP/CIDR lists by real address coverage: what was added, removed, or overlaps — ideal for firewall allowlist reviews.