About CIDR Range Calculator
CIDR notation hides a simple range: a block such as 10.20.30.0/24 stands for a first and last address plus everything between. Going the other way is harder, because an arbitrary start and end usually covers several aligned blocks of different sizes. This calculator handles both directions in one place.
In block mode it lists the first address, last address, total addresses and usable range. In range mode it applies the standard greedy algorithm to build the smallest exact set of CIDR blocks that covers the range, with every block copyable so it can go into a firewall or routing change request.
What this tool does
Block to range
Enter a CIDR block to see its first address, last address, total addresses and usable host range.
Range to blocks
Enter a start and end address to get the smallest exact set of aligned CIDR blocks that covers the range.
Exact cover
The greedy algorithm produces blocks inside the range without adding addresses outside it.
Copy each block
Every covering block has a copy button so it can be pasted into a firewall rule or change request.
Special prefixes
A /31 is reported as two usable point-to-point addresses and a /32 as a single host address.
Validated locally
IPv4 syntax and prefix bounds are checked in the browser, and invalid input returns an inline message.
How to use CIDR Range Calculator
- 01
Choose the direction
Pick CIDR block to expand a block, or IP range to build blocks from a first and last address.
- 02
Enter the block or range
Type a value such as 10.20.30.0/24, or the start and end address in dotted decimal.
- 03
Read the result
Block mode shows the covered range; range mode lists the blocks that cover it exactly.
- 04
Check the boundaries
Confirm the first and last address match the range you intended before copying anything.
- 05
Copy into a change request
Use the copy buttons on the rows you need for a firewall, ACL or routing change.
How this tool works
- Works with
- CIDR / IP range
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- IPv4 only; IPv6 ranges use the IPv6 subnet calculator.
- Range mode returns the smallest exact cover, not an optimized allocation plan.
- No overlap, routing or VLAN validation is performed.
- Very fragmented ranges can produce many blocks; the result is capped at 1,024 blocks.
Privacy and file handling
CIDR blocks and IP ranges are converted entirely in your browser with local arithmetic. No address is uploaded or logged, and no request leaves the page; closing it clears the inputs.
Read the full privacy policy
