IP Range Calculator
Calculate usable IP range, network address, broadcast address, subnet mask, CIDR notation, total hosts, usable hosts, wildcard mask, and IP class from any IPv4 address and subnet.
IPv4 IP Range Calculator
Enter an IPv4 address and CIDR prefix to instantly calculate the full IP range, usable hosts, and network details. We do not collect or store what you enter.
Network Details
Enter mask to auto-convert to CIDR
Press Esc to reset
IP Range Summary
Quick Presets
Calculation Results
IP range to CIDR blocks
10.0.0.5/3210.0.0.6/3110.0.0.8/2910.0.0.16/3010.0.0.20/32The smallest set of CIDR blocks that covers exactly this range — useful for firewall rules and allow lists.
Related tools
How to Use the IP Range Calculator
Quick Start Guide
- 1Enter an IPv4 address: Type any IPv4 address, such as 192.168.1.10, or click a preset for a common network.
- 2Set the CIDR prefix or subnet mask: Drag the CIDR slider (/0 to /32), type a subnet mask such as 255.255.255.0, or click a prefix in the cheat sheet further down the page.
- 3Read the results: See the network and broadcast addresses, first and last usable host, number of usable hosts, wildcard mask, IP class and whether the address is private, public, loopback or multicast.
- 4Split the network into subnets: Choose a longer prefix to see every subnet it creates, with each subnet's usable range and broadcast address.
- 5Turn an IP range into CIDR blocks: Enter a first and last IP to get the smallest list of CIDR blocks that covers exactly that range.
- 6Copy, share or export: Copy the summary, share the URL (it carries the ip and cidr), or export the result as TXT or JSON.
Key Features
- ✓Real-time IP range calculations as you type
- ✓CIDR ↔ subnet mask auto conversion
- ✓Binary visualization of IP, mask, and network
- ✓Private / public / loopback / multicast detection
- ✓IP class detection (A, B, C, D, E)
- ✓Split a network into equal subnets
- ✓IP range to CIDR block conversion
- ✓Clickable CIDR cheat sheet from /8 to /32
- ✓Shareable URL with ip + cidr parameters
- ✓Calculation history saved in browser
- ✓Export results as TXT or JSON
- ✓Copy full summary to clipboard
- ✓Quick preset buttons for common networks
Example IP Range Calculations
| Input | Network | Broadcast | Host Range | Usable Hosts |
|---|---|---|---|---|
| 192.168.1.10 /24 | 192.168.1.0 | 192.168.1.255 | 192.168.1.1 – 192.168.1.254 | 254 |
| 10.0.0.50 /16 | 10.0.0.0 | 10.0.255.255 | 10.0.0.1 – 10.0.255.254 | 65,534 |
| 172.16.5.100 /26 | 172.16.5.64 | 172.16.5.127 | 172.16.5.65 – 172.16.5.126 | 62 |
| 10.10.0.1 /30 | 10.10.0.0 | 10.10.0.3 | 10.10.0.1 – 10.10.0.2 | 2 |
| 192.168.100.0 /8 | 192.0.0.0 | 192.255.255.255 | 192.0.0.1 – 192.255.255.254 | 16,777,214 |
CIDR & Subnet Mask Reference
| CIDR | Subnet Mask | Wildcard | Total Addresses | Usable Hosts |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
CIDR Cheat Sheet: /8 to /32
Click a prefix to use it in the calculator. Usable hosts subtract the network and broadcast addresses, except for /31 point-to-point links and single-host /32 routes.
| Prefix | Subnet mask | Addresses | Usable hosts |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
| /9 | 255.128.0.0 | 8,388,608 | 8,388,606 |
| /10 | 255.192.0.0 | 4,194,304 | 4,194,302 |
| /11 | 255.224.0.0 | 2,097,152 | 2,097,150 |
| /12 | 255.240.0.0 | 1,048,576 | 1,048,574 |
| /13 | 255.248.0.0 | 524,288 | 524,286 |
| /14 | 255.252.0.0 | 262,144 | 262,142 |
| /15 | 255.254.0.0 | 131,072 | 131,070 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 512 | 510 |
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /29 | 255.255.255.248 | 8 | 6 |
| /30 | 255.255.255.252 | 4 | 2 |
| /31 | 255.255.255.254 | 2 | 2 |
| /32 | 255.255.255.255 | 1 | 1 |
Frequently Asked Questions
What is an IP range calculator?
An IP range calculator takes an IPv4 address and CIDR prefix (or subnet mask) and computes the full network information: network address, broadcast address, usable host range, total hosts, subnet mask, wildcard mask, and IP class. It eliminates manual binary math for network engineers and students.
How is the host range calculated?
The network address is the first address in the subnet (IP AND mask), the broadcast is the last (network OR inverted mask). Usable hosts are all addresses between them (first host = network + 1, last host = broadcast - 1). A /24 gives 254 usable hosts out of 256 total.
What is the wildcard mask?
The wildcard mask is the bitwise inverse of the subnet mask. It's used in ACLs and routing protocols. For a /24 subnet (255.255.255.0), the wildcard mask is 0.0.0.255.
What does CIDR mean?
CIDR (Classless Inter-Domain Routing) notation represents an IP address and its associated network prefix. For example, 192.168.1.0/24 means the first 24 bits are network bits, leaving 8 bits for host addresses.
How are /31 and /32 subnets handled?
A /31 subnet has 2 addresses, both usable for point-to-point links (RFC 3021). A /32 is a host route with a single address. This calculator handles both cases correctly.
How does the shareable URL work?
The calculator automatically updates the browser URL with ?ip=x.x.x.x&cidr=xx as you type. You can copy and share this URL to pre-fill the calculator for anyone.
How do I convert an IP range to CIDR?
Enter the first and last address in IP range to CIDR blocks. The calculator returns the smallest set of aligned blocks that covers exactly that range. For example, 10.0.0.5 to 10.0.0.20 becomes 10.0.0.5/32, 10.0.0.6/31, 10.0.0.8/29, 10.0.0.16/30 and 10.0.0.20/32.
How do I split a /24 into smaller subnets?
Pick a longer prefix in Split into subnets. Each extra bit doubles the number of subnets and halves their size: a /24 splits into two /25s of 126 usable hosts, four /26s of 62, or eight /27s of 30.
Related Tools
Subnet Calculator
Calculate subnet mask, network, and hosts.
CIDR Calculator
Calculate CIDR notation details.
Bandwidth Calculator
Estimate bandwidth usage.
Latency Calculator
Estimate network latency.
Download Time Calculator
Estimate download time.
Data Transfer Calculator
Calculate transfer time based on speed.
File Size Converter
Convert file sizes (KB, MB, GB).
Checksum Calculator
Compute checksum for data validation.
IP Address Masker
Practice converting IP to CIDR blocks.
Time Complexity Calculator
Estimate Big-O complexity growth.
AI Token Cost Calculator
Estimate cost per token usage.
AI Prompt Length Calculator
Calculate token length.