CIDR to IP Range Converter
Convert CIDR notation like 192.168.1.0/26 into its first and last IP address and total address count. Handles many blocks at once, free and in-browser.
IP ranges
| CIDR | First address | Last address | Addresses |
|---|---|---|---|
| 192.168.1.0/26 | 192.168.1.0 | 192.168.1.63 | 64 |
| 10.0.0.0/8 | 10.0.0.0 | 10.255.255.255 | 16,777,216 |
| 203.0.113.5/32 | 203.0.113.5 | 203.0.113.5 | 1 |
What is the CIDR to IP Range Converter?
This CIDR to IP Range converter expands any CIDR block into its start and end addresses and total address count.
- Expands any /0–/32 CIDR block to its first and last address
- Batch mode: convert a whole list of blocks in one paste
- Shows per-block and combined total address counts
- Flags invalid lines individually with a clear reason
- Copyable start–end output for firewalls and documentation
- Runs entirely in your browser — nothing is uploaded
How to use the CIDR to IP Range Converter
- 1
Paste one or more CIDR blocks into the input, one per line.
- 2
Review the table showing each block's first address, last address and size.
- 3
Check the totals row for the combined address count across all blocks.
- 4
Click Copy ranges to export every block as start–end range text.
About the CIDR to IP Range Converter
This CIDR to IP Range converter expands any CIDR block into its start and end addresses and total address count. Paste 10.0.0.0/8 and instantly see it spans 10.0.0.0 to 10.255.255.255 with 16,777,216 addresses — no manual binary math required.
It accepts multiple blocks at once, one per line, which makes it ideal for translating firewall allowlists, cloud security groups or geo-IP feeds into human-readable ranges. Invalid lines are flagged individually with the reason, so one typo never hides the rest of the results.
All conversion is unsigned 32-bit arithmetic performed locally in your browser. Your address lists are never uploaded anywhere, and the converted ranges can be copied out in a single click.
Worked example: three blocks at once
The tool starts with three lines. 192.168.1.0/26 expands to 192.168.1.0 through 192.168.1.63, which is 64 addresses, because a /26 leaves 6 host bits and 2⁶ is 64. 10.0.0.0/8 expands to 10.0.0.0 through 10.255.255.255, or 16,777,216 addresses. 203.0.113.5/32 is a single address, so its first and last address are the same.
The summary above the table counts the blocks parsed, any invalid lines and the total address count across all valid blocks. Copy ranges produces one line per block in the form 192.168.1.0/26 = 192.168.1.0 - 192.168.1.63 (64 addresses), ready to paste into a ticket or firewall change request.
Common mistakes
Entering an address with host bits set and expecting the range to start there. 192.168.1.77/26 is normalised to its network, 192.168.1.64/26, so the range shown is 192.168.1.64 to 192.168.1.127. If the CIDR column differs from what you typed, the original was not aligned to its block.
Counting every address as a usable host. The count is the full block, including the network and broadcast addresses. In a traditional /26, 62 addresses can be assigned to hosts; cloud providers often reserve more, so check your platform's rules.
Leaving off the prefix. A bare address such as 10.0.0.1 is reported as invalid, because without /nn there is no block to expand.
Pasting IPv6. The tool handles IPv4 CIDR only; IPv6 lines show as invalid.
Adding up overlapping blocks. Each line is expanded on its own and nothing is merged, so listing both 10.0.0.0/8 and 10.1.0.0/16 counts the /16 twice in the total. Remove nested blocks first if you need an exact count.
When to use it
Use it when a firewall, allow-list or access log speaks in ranges but your documentation or a provider's published list speaks in CIDR, or when you need to confirm how many addresses a block really contains before allocating it. Because it takes one block per line, it is also a quick way to check a whole list of published prefixes at once.
Frequently asked questions
How do I convert CIDR notation to an IP range?
Zero the host bits of the address to get the first address, then set them all to 1 to get the last. For 192.168.1.0/26 the host part is 6 bits, so the range is 192.168.1.0 through 192.168.1.63. This tool does the bit math for every block you paste.
How many IP addresses are in a CIDR block?
A /n block contains 2^(32−n) addresses. So a /24 has 256, a /26 has 64 and a /16 has 65,536. The converter shows the exact count next to each block, plus a combined total when you paste several.
Can I convert multiple CIDR blocks at once?
Yes — paste as many blocks as you like, one per line. Each valid line becomes a row with its first address, last address and size, and any malformed line is reported separately without stopping the others.
What is the difference between the network address and the first usable host?
The first address of a block is its network identifier; hosts normally start one above it. This tool reports the raw first and last addresses of the block. For usable host ranges with network and broadcast excluded, use the Subnet Calculator.
Is my IP list private when I use this tool?
Completely. The expansion is simple integer arithmetic done in your browser tab — no server sees your list, and the tool keeps working even with the network disconnected.
Need a custom tool or app like this for your business? ByteVancer builds them.
Talk to ByteVancerRelated tools
Subnet Calculator
Calculate network address, broadcast, usable host range and subnet mask from any IPv4 address and CIDR prefix. Free, instant and 100% in your browser.
IP Range to CIDR Converter
Convert any start–end IP range into the smallest possible set of CIDR blocks. Ideal for firewall rules and route summaries — free and fully in-browser.
CIDR to IP List Generator
Expand a CIDR block into a downloadable list of every IP address it contains, up to /16. Include or exclude network and broadcast — free and in-browser.
CIDR Aggregator
Aggregate a list of IPs and CIDR blocks into the minimal covering set. Merges overlapping and adjacent IPv4 ranges into clean summary routes — 100% offline.