About this tool
Firewalls, cloud security groups and allow-lists usually want CIDR notation, but providers often publish plain address ranges. Enter the first and last address and you get the smallest set of CIDR blocks whose union is exactly that range, with no extra addresses included. You can also paste a range such as 10.0.0.5 - 10.0.0.70 into the first box. The conversion happens locally.
How to use IP Range to CIDR
- Type the first address of the range.
- Type the last address of the range.
- Read the resulting CIDR blocks and the total address count.
- Copy the list or download it as a text file.
Frequently asked questions
Why do I get several blocks instead of one?
A single CIDR block must start on a boundary that matches its size. Ranges that do not line up with those boundaries need several blocks to be covered exactly.
Does it include addresses outside my range?
No. The blocks cover exactly the range you typed, from the first address to the last, inclusive.