IP range calculator
Firewalls, cloud security groups and allow-lists usually want CIDR notation, while providers often publish their addresses as plain start–end ranges. Enter a first and last address and the calculator returns the smallest set of CIDR blocks that covers exactly that range, how many addresses it contains and whether a given address falls inside. Switch modes to paste a list of CIDR blocks or ranges, one per line, and see each one’s first address, last address and size. IPv4 and IPv6 both work, using exact big-integer maths.
Convert
- Addresses
- 191
- CIDR blocks
- 8
- Family
- IPv4
How to use the IP Range Calculator
- 1
Choose a mode
Range → CIDR, or CIDR → range.
- 2
Enter addresses
A start and end address, or a list of CIDR blocks or ranges.
- 3
Copy the result
The CIDR list, or the table of ranges.
How ranges become CIDR blocks
From the start address, take the largest block that begins exactly at that address (its low bits are zero) and doesn’t go past the end, then continue after it. This greedy method gives the minimal list.
- Block size = 2^(32 − prefix) for IPv4, 2^(128 − prefix) for IPv6
When to use it
- Add a provider’s published range to a firewall.
- Check whether an address is covered by an allow-list.
- Expand CIDR blocks from a config into readable ranges.
Limits
- A very large, unaligned IPv6 range can need many blocks; the list is capped at 1,024.
- For subnet details (mask, broadcast, usable hosts) use the IP Subnet Calculator.
Privacy
Calculated in your browser; addresses are not sent anywhere.
Frequently asked questions
Why does a range need several CIDR blocks?
A CIDR block always has a power-of-two size and starts on a matching boundary. A range like 10.0.0.1–10.0.0.10 isn’t aligned, so it takes five blocks.
What does /32 mean?
A single IPv4 address. /24 is 256 addresses, /16 is 65,536. For IPv6, /128 is one address and /64 is a typical subnet.
What happens to host bits in CIDR → range?
10.1.2.77/24 is treated as the network 10.1.2.0/24, so the range is 10.1.2.0–10.1.2.255.
Can I mix IPv4 and IPv6?
In the list, yes, one per line. A single range must use the same family at both ends.
Are these usable host counts?
No, they are total addresses. Subtract network and broadcast addresses for usable IPv4 hosts, or use the Subnet Calculator.
Related tools
- IP Subnet CalculatorNetwork, broadcast, host range, mask and host count for IPv4 and IPv6 CIDR blocks.
- What Is My IP AddressSee the public IP address your connection uses, with IPv4, IPv6, approximate location and internet provider.
- DNS LookupA, AAAA, MX, TXT, NS, CNAME, SOA, CAA and more for any domain, with TTLs and DNSSEC status.
People also use
- Internet Speed TestMeasure your download and upload speed, ping and jitter in a few seconds, with no app or sign-up.
- Ping TestMeasure latency, jitter and packet loss over a run, with a live chart and a verdict for games and calls.
- WHOIS Lookup (RDAP)See who a domain is registered with, when it was created and expires, its name servers and abuse contact.
- WebRTC Leak TestSee whether WebRTC exposes your real IP address while you use a VPN or proxy.
Last updated November 24, 2026 · How we build and test our tools