IPv4 Range Expander
NEWIPv4 range expander: convert a start and end IP into the smallest list of CIDR blocks, or expand a CIDR into its first and last address. Free, in-browser.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
16 addresses in 5 CIDR blocks · 10.0.0.5 – 10.0.0.20
| CIDR | First | Last | Addresses | |
|---|---|---|---|---|
| 10.0.0.5/32 | 10.0.0.5 | 10.0.0.5 | 1 | |
| 10.0.0.6/31 | 10.0.0.6 | 10.0.0.7 | 2 | |
| 10.0.0.8/29 | 10.0.0.8 | 10.0.0.15 | 8 | |
| 10.0.0.16/30 | 10.0.0.16 | 10.0.0.19 | 4 | |
| 10.0.0.20/32 | 10.0.0.20 | 10.0.0.20 | 1 |
Quick Examples
Typical inputs and the results this tool produces.
Overview
The IPv4 range expander turns an arbitrary start and end address into the smallest set of CIDR blocks that covers that range exactly, with no address left out and none added. It also works the other way: enter one or more CIDR blocks and get the first address, last address and size of each.
Firewall rules, cloud security groups, allow-lists and route tables usually accept CIDR notation, while hosting providers and registries often hand out plain ranges like 10.0.0.5 – 10.0.0.20. This tool does that translation and shows the total address count.
When the result is a single block you also get its netmask, wildcard mask, broadcast and usable host range. All maths runs in your browser with unsigned 32-bit numbers and nothing is uploaded.
Why use this tool?
- Exact, minimal CIDR cover of any range
- Works in both directions
- Netmask and host range for single blocks
- Copy one block or the whole list
- Private: nothing leaves your browser
Features
Minimal block list
Greedy alignment gives the fewest CIDR blocks for the range.
Two directions
Range to CIDR, or CIDR to first and last address.
Address count
Shows the total number of addresses with thousands separators.
Subnet details
Netmask, wildcard, broadcast and usable hosts for a single CIDR.
Copy buttons
Copy each block, a whole list or a first-last range.
Local only
No network calls; the maths runs in your browser.
How to Use
Pick a direction
Choose "IP range → CIDR blocks" or "CIDR → IP range".
Enter the addresses
Fill in Start IP and End IP, or list one CIDR per line.
Read the table
See each block with its first and last address and size, plus the total count.
Copy the result
Press Copy next to a block, or Copy all blocks to paste a full list.