CIDR to IP Range
Convert a CIDR block to an IP range, or a range back to CIDR blocks.
Runs in your browser. Nothing you type is uploaded.
CIDR to IP range
Enter a block such as 10.0.0.0/22 to see the first and last address it covers and how many addresses that is. Useful when a firewall, allow list or cloud console wants a range and you have a CIDR block (or the other way round).
IP range to CIDR
Enter a range as "start - end" and you get the smallest list of CIDR blocks that covers exactly that range and nothing else. A range that does not line up with a power of two needs several blocks: 10.0.0.1 - 10.0.0.6 becomes 10.0.0.1/32, 10.0.0.2/31, 10.0.0.4/31 and 10.0.0.6/32.
FAQ
Why does one range give several CIDR blocks?
A CIDR block is always a power-of-two number of addresses starting on a matching boundary, so uneven ranges are split into the fewest aligned blocks.
Does it work for IPv6?
Yes. Both ends must be the same kind of address.
More IP tools
- What is my IP address: see the IP address you are connecting from.
- IP address validator: Check an IPv4 or IPv6 address is valid, and see whether it is private, loopback, reserved or public.
- Subnet calculator: Network, broadcast, netmask, wildcard and host range for any IPv4 or IPv6 CIDR block.
- IP address converter: Convert an IPv4 address between dotted, decimal, hex and binary; expand or shorten IPv6.
- Reverse DNS helper: Build the in-addr.arpa or ip6.arpa name for an address, with ready-to-run dig and host commands.
- Private IP ranges: A reference table of private, loopback, link-local and other reserved IP address blocks.