Productive Toolbox

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

/0/16/32

Enter mask to auto-convert to CIDR

Press Esc to reset

IP Range Summary

Enter an IP and CIDR to calculate

Quick Presets

Calculation Results

Enter an IPv4 address to see 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/32

The smallest set of CIDR blocks that covers exactly this range — useful for firewall rules and allow lists.

How to Use the IP Range Calculator

Quick Start Guide

  1. 1Enter an IPv4 address: Type any IPv4 address, such as 192.168.1.10, or click a preset for a common network.
  2. 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.
  3. 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.
  4. 4Split the network into subnets: Choose a longer prefix to see every subnet it creates, with each subnet's usable range and broadcast address.
  5. 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.
  6. 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

InputNetworkBroadcastHost RangeUsable Hosts
192.168.1.10 /24192.168.1.0192.168.1.255192.168.1.1 – 192.168.1.254254
10.0.0.50 /1610.0.0.010.0.255.25510.0.0.1 – 10.0.255.25465,534
172.16.5.100 /26172.16.5.64172.16.5.127172.16.5.65 – 172.16.5.12662
10.10.0.1 /3010.10.0.010.10.0.310.10.0.1 – 10.10.0.22
192.168.100.0 /8192.0.0.0192.255.255.255192.0.0.1 – 192.255.255.25416,777,214

CIDR & Subnet Mask Reference

CIDRSubnet MaskWildcardTotal AddressesUsable Hosts
/8255.0.0.00.255.255.25516,777,21616,777,214
/16255.255.0.00.0.255.25565,53665,534
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342

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.

PrefixSubnet maskAddressesUsable hosts
/8255.0.0.016,777,21616,777,214
/9255.128.0.08,388,6088,388,606
/10255.192.0.04,194,3044,194,302
/11255.224.0.02,097,1522,097,150
/12255.240.0.01,048,5761,048,574
/13255.248.0.0524,288524,286
/14255.252.0.0262,144262,142
/15255.254.0.0131,072131,070
/16255.255.0.065,53665,534
/17255.255.128.032,76832,766
/18255.255.192.016,38416,382
/19255.255.224.08,1928,190
/20255.255.240.04,0964,094
/21255.255.248.02,0482,046
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

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.