CIDR to IP Range & Range to CIDR Converter

Convert CIDR blocks to starting and ending IP addresses, or summarize arbitrary IP address ranges into the minimal set of CIDR prefix blocks.

CIDR to IP Range IP Range to CIDR Summary
Computed IP Range
10.0.0.0 – 10.0.255.255 10.0.0.0/16 65,536 Total Addresses
CIDR Prefix 10.0.0.0/16
Starting IP (Network Address) 10.0.0.0
Ending IP (Broadcast Address) 10.0.255.255
Total IP Count 65,536 Addresses
Subnet Mask 255.255.0.0
Wildcard Mask 0.0.255.255

What Is a CIDR Converter and What Does It Show?

A CIDR to IP Range Converter is a specialized network planning utility that bridges the gap between binary bitmask notation and human-readable IP address ranges. It operates in two fundamental directions: expanding a single CIDR block (such as 192.168.0.0/22) into its exact contiguous starting and ending boundary addresses, and condensing arbitrary IP ranges into the smallest possible collection of power-of-two CIDR subnets (a process known as route summarization or supernetting).

When configuring cloud access lists, hardware firewalls, or BGP peering sessions, systems engineers frequently receive network specifications formatted as starting and ending IP addresses from vendors or compliance officers. Because routers and cloud providers (like AWS Security Groups and Cloudflare Access) accept only CIDR format, converting these spans into compliant prefixes without introducing overlap or gaps is a vital operational task.

How to Use This Tool

  1. Select Conversion Mode: Use the toggle buttons at the top to select either "CIDR to IP Range" or "IP Range to CIDR Summary".
  2. Input Network Data:
    • In CIDR to Range mode: Enter any valid prefix such as 172.16.0.0/20 or 10.50.0.0/23.
    • In Range to CIDR mode: Enter the starting IPv4 address and ending IPv4 address.
  3. Execute Conversion: Click the conversion button to calculate the mathematical subnet structures.
  4. Capture Results: Inspect the resulting network boundaries and click "Copy" to paste the synthesized CIDR blocks directly into your firewall or routing configuration.

Why CIDR Calculations Matter: Practical Network Scenarios

CIDR manipulation and route summarization are foundational to modern infrastructure engineering:

  • Firewall Rule Minimization: Hardware firewalls and cloud security groups impose strict limits on the number of rules an administrator can deploy. Consolidating dozens of individual IP entries into two or three summarized CIDR blocks reduces CPU overhead on packet inspection engines and simplifies security audits.
  • BGP Route Summarization: Backbone internet routers exchange routing information via the Border Gateway Protocol (BGP). If ISPs announced every individual /24 customer block separately, the global routing table (which exceeds 950,000 routes) would overload router memory and crash transit backbones. Route summarization aggregates smaller customer prefixes into cohesive blocks, stabilizing global internet routing.
  • Cloud VPC Peering & Transit Gateways: When interconnecting multiple Virtual Private Clouds (VPCs) across AWS, Azure, or Google Cloud, routing tables must be populated with non-overlapping CIDR blocks. Understanding exact boundary limits prevents routing collisions between enterprise corporate networks and cloud microservices.
  • Content Delivery Network (CDN) IP Whitelisting: CDNs regularly publish lists of hundreds of CIDR blocks representing edge nodes. Security engineers use this tool to verify whether incoming web requests align with authorized edge ranges.

The Mathematics of Route Summarization (Range to CIDR)

Converting an arbitrary span of addresses (e.g., from 192.168.1.5 to 192.168.1.30) into CIDR requires decomposing the range into discrete blocks where each block size is a power of 2 (\(2^n\)) and the starting address is cleanly divisible by that block size:

Segment Start IP End IP Addresses CIDR Equivalent
1 192.168.1.5 192.168.1.5 1 192.168.1.5/32
2 192.168.1.6 192.168.1.7 2 192.168.1.6/31
3 192.168.1.8 192.168.1.15 8 192.168.1.8/29
4 192.168.1.16 192.168.1.29 16 (part 1) 192.168.1.16/28 (up to .31, or split)

Frequently Asked Questions

Classless Inter-Domain Routing (CIDR) replaced the rigid, wasteful Class A, B, and C system in 1993. It allows networks to be partitioned along arbitrary power-of-two bit boundaries, enabling more granular IP allocation, slowing IPv4 depletion, and dramatically reducing global routing table bloat through route aggregation.

A CIDR prefix determines the number of fixed network bits. For example, in 192.168.1.0/24, the first 24 bits are fixed, leaving 8 bits (256 addresses) for host values from 0 to 255. The starting IP is the network address (192.168.1.0) and the ending IP is the broadcast address (192.168.1.255).

CIDR blocks must satisfy two strict binary conditions: their size must be a power of two (\(2^n\)), and their starting address must be aligned to that exact block size. If an arbitrary IP range (e.g. 192.168.1.1 to 192.168.1.10) does not naturally match a single power-of-two boundary, it must be aggregated into multiple smaller contiguous CIDR subnets.

Route summarization, or supernetting, is the process of combining multiple contiguous smaller subnet routes into a single overarching CIDR block. For example, advertising four contiguous /24 blocks (192.168.0.0/24 through 192.168.3.0/24) as a single /22 block (192.168.0.0/22) saves memory and processor overhead in backbone BGP routers.

A /16 block provides \(2^{16} = 65,536\) total IP addresses. A /24 block provides \(2^8 = 256\) total IP addresses. A /30 block provides \(2^2 = 4\) total IP addresses.