CIDR to IP Range Converter
Convert prefixes into start–end ranges.
CIDR to IP Range Converter: inputs and results
Enter an IP address, CIDR prefix, or range. Then check its first and last address below.
Calculated Boundaries & ParametersReady
Key Capabilities
- •100% Client-Side: Zero telemetry or server latency.
- •RFC Compliant: Exact 32-bit and 128-bit integer precision.
- •Quick Copy: Instant access to CIDR, mask, and range bounds.
- •Cross-Platform: Works on desktop, tablet, and mobile browsers.
Related Conversion & EncodingAll Tools
How CIDR to IP Range Converter Works?
This tool works by turning each CIDR prefix into a start address and an end address, then printing both in dotted and integer form for range-based systems.
Paste 1 or more CIDR blocks
Enter blocks such as
172.20.0.0/14, one per line.Align each block
The converter clears the host bits, so an entry such as
172.21.9.9/14still starts at172.20.0.0.Compute the end
The end equals the start plus 2^(32 − p) − 1.
Output the ranges
Each line becomes
start – end, with integer values for databases and SIEM queries.
CIDR to IP Range Converter Formula
The formula is Range = [N, N + 2^(32 − p) − 1], where N is the aligned network address.
Start
N = IP AND Mask(p)Aligned block start.
End
N + 2^(32−p) − 1Last address in the block.
Integer start
o1×16,777,216 + o2×65,536 + o3×256 + o4Dotted to integer.
Range length
2^(32 − p)Addresses between start and end, inclusive.
Worked example: 172.20.0.0/14
Block size = 2^18 = 262,144 = 4 × /16 Start = 172.20.0.0 (integer 2,886,991,872) End = 172.23.255.255 (integer 2,887,254,015) Range = 172.20.0.0 – 172.23.255.255
CIDR to IP Range Converter Conversion Table
The table turns 10 CIDR blocks into start–end ranges, with the integer value of both endpoints.
| CIDR | Start IP | End IP | Start Integer | End Integer |
|---|---|---|---|---|
| 10.0.0.0/16 | 10.0.0.0 | 10.0.255.255 | 167,772,160 | 167,837,695 |
| 10.0.128.0/17 | 10.0.128.0 | 10.0.255.255 | 167,804,928 | 167,837,695 |
| 172.20.0.0/14 | 172.20.0.0 | 172.23.255.255 | 2,886,991,872 | 2,887,254,015 |
| 192.168.100.0/22 | 192.168.100.0 | 192.168.103.255 | 3,232,261,120 | 3,232,262,143 |
| 203.0.113.0/25 | 203.0.113.0 | 203.0.113.127 | 3,405,803,776 | 3,405,803,903 |
| 198.51.100.128/26 | 198.51.100.128 | 198.51.100.191 | 3,325,256,832 | 3,325,256,895 |
| 192.0.2.16/28 | 192.0.2.16 | 192.0.2.31 | 3,221,226,000 | 3,221,226,015 |
| 100.64.0.0/12 | 100.64.0.0 | 100.79.255.255 | 1,681,915,904 | 1,682,964,479 |
| 10.250.0.0/20 | 10.250.0.0 | 10.250.15.255 | 184,156,160 | 184,160,255 |
| 172.16.254.0/23 | 172.16.254.0 | 172.16.255.255 | 2,886,794,752 | 2,886,795,263 |
What is CIDR to IP Range Converter?
The CIDR to IP Range Converter is a tool that converts CIDR prefixes into explicit start and end IP addresses. 10.0.128.0/17 becomes 10.0.128.0 – 10.0.255.255.
CIDR is compact, but many systems store and compare addresses as intervals: database tables with start and end columns, geolocation files, and firewall range objects. The converter handles a whole list in one pass.
The integer columns make the output ready for SQL BETWEEN queries, which compare numbers far faster than dotted strings.
What are the uses of CIDR to IP Range Converter?
There are 5 main uses of the CIDR to IP Range Converter, including bulk firewall imports, SQL range tables, and vendor allow-lists.
Importing ranges into firewalls
Firewalls with range objects need start and end values for each CIDR in a vendor list.
Filling SQL range tables
The integer columns load directly into
ip_startandip_endfields.Converting cloud provider lists
AWS and Google publish address lists in CIDR form. The converter turns them into ranges.
Building spreadsheet lookups
Spreadsheets use numeric ranges for VLOOKUP-style address matching.
Explaining CIDR to non-engineers
Plain ranges show exactly which addresses a prefix covers.