Ipv4 Range To Cidr Calculator
Cover an inclusive IPv4 address range with the smallest aligned set of CIDR blocks.
Result for the values shown.
Calculations run in your browser.
What to enter
| Input | Meaning and units |
|---|---|
| Start | IPv4 |
| End | IPv4 >=start |
Understanding your result
The output applies the selected format or address convention. Encoding is not encryption; a valid address representation does not establish availability, reachability or security.
Common mistakes
- Using a different alphabet, padding, base, delimiter or address-prefix convention than the tool expects.
Check your calculation
- Where a reverse operation exists, round-trip a short known example. Compare structural results with the reference example rather than executing decoded text.
Calculation checks, sources and review limits
What smallest set of CIDR blocks covers this inclusive IPv4 address range?
Cover an inclusive IPv4 address range with the smallest aligned set of CIDR blocks.
Common uses
- Cover an inclusive IPv4 address range with the smallest aligned set of CIDR blocks.
How it works
Greedily select the largest power-of-two block aligned to current start and contained in inclusive end, advance start; repeat.
Worked example
Enter Start: 192.0.2.0; End: 192.0.2.255. The result is Blocks: 192.0.2.0/24.
FAQ
What smallest set of CIDR blocks covers this inclusive IPv4 address range?
Greedily select the largest power-of-two block aligned to current start and contained in inclusive end, advance start; repeat.
What assumptions and limits apply?
Cap displayed blocks; no DNS or external scanning.