How to use the IP Range to CIDR tool
- Choose a mode: ranges to CIDR, or merge a CIDR list.
- Paste your ranges (start - end) or CIDR blocks, one per line.
- Click “Convert” and copy the result.
Why a range often needs several blocks
A CIDR block must start on a boundary that matches its size: a /26 (64 addresses) has to start at .0, .64, .128 or .192. An arbitrary range such as 192.168.1.10 to 192.168.1.73 does not line up, so it has to be covered by several blocks of different sizes: /31, /30, /29, /27 and so on. The converter finds the smallest such set, which is exactly what firewalls and access lists that only accept CIDR need.
Merging and route summarisation
In merge mode the tool sorts your blocks, joins overlapping and adjacent ones, and rewrites the result as the fewest CIDR blocks. 10.1.0.0/24, 10.1.1.0/24 and 10.1.2.0/23 become a single 10.1.0.0/22.
- Shorter routing tables: advertise one summary route instead of dozens of small ones.
- Cleaner firewall rules and cloud security groups, which often have a limit on the number of entries.
- Deduplicated block lists: country or threat-intelligence lists often contain overlapping entries.
From experience: always check the merged result before applying it as a route summary. A summary can cover addresses you do not own, and traffic for those will then be routed to you and dropped.
Privacy
Everything runs in your browser. Nothing you type is sent to our server or stored.
Example
The range 192.168.1.10 – 192.168.1.73 becomes 192.168.1.10/31, 192.168.1.12/30, 192.168.1.16/28, 192.168.1.32/27, 192.168.1.64/29 and 192.168.1.72/31: six blocks that cover exactly those 64 addresses and nothing else. Using a single /25 instead would also allow 64 addresses you did not intend.
Frequently asked questions
Does the order of the start and end address matter?
No. If the end address is lower than the start, they are swapped.
Can I mix IPv4 and IPv6?
Yes, line by line. In merge mode IPv4 and IPv6 blocks are merged separately.
Is the result the smallest possible list?
Yes. The algorithm always takes the largest aligned block that fits, which gives the minimal number of CIDR blocks.
What separators can I use for a range?
A hyphen, an en dash, a comma or a space between the two addresses.
How do I convert an IP range for a firewall that only accepts CIDR?
Paste the range as start - end, for example 10.0.0.5 - 10.0.0.20, and copy the CIDR blocks. Add each block as a separate entry in the firewall or security group.
Can I summarise routes with it?
Yes. Paste the routes in merge mode; adjacent and overlapping blocks are combined into the fewest CIDR blocks. Check that the summary does not include networks you do not own.
Is my data sent anywhere?
No. The calculation runs in your browser.
How do I go the other way, from CIDR to a range?
Use CIDR to IP Range, which shows the first and last address and the number of hosts of a block.