Online CIDR to IP Range Converter

CIDR notation parsing, IP range calculation, subnet mask conversion

Zero Dependencies · Works Offline
🔢 CIDR Input
🔒 All calculations happen locally in your browser, no data sent to servers

What Can the CIDR to IP Range Converter Do?

The online CIDR to IP range converter is a free pure frontend tool that helps you quickly convert CIDR notation to IP address ranges. It calculates complete subnet information including network address, broadcast address, subnet mask, and usable host count, with batch conversion support.

Core Features

How to Use

  1. Enter CIDR notation in the input box, e.g., 192.168.1.0/24
  2. One CIDR per line for batch input
  3. Click "Convert" or auto-calculate on input
  4. View complete subnet information for each CIDR
  5. Click "Copy Results" to export all conversions

Use Cases

Network Planning

Network engineers can quickly calculate IP ranges and usable host counts for CIDR blocks, enabling efficient IP address allocation.

Firewall Configuration

When configuring firewall rules, convert CIDR to specific IP ranges quickly, avoiding manual calculation errors.

Troubleshooting

Quickly verify if a CIDR range contains a target IP when diagnosing network issues, checking routing and access control correctness.

Extended Knowledge

CIDR (Classless Inter-Domain Routing) was introduced in 1993 as an IP address allocation method, replacing the traditional A/B/C class network classification. CIDR format is IP/prefix length, where the prefix length indicates the number of network bits. For example, /24 means 24 network bits and 8 host bits, accommodating 2^8-2=254 host IPs (subtracting network and broadcast addresses). CIDR enables route aggregation (supernetting), effectively reducing routing table entries — the foundation of modern internet routing.

FAQ

What is the CIDR prefix length range?
IPv4 CIDR prefix length ranges from 0 to 32. /0 represents the entire internet, /32 represents a single IP. Common ranges: /8 (Class A), /16 (Class B), /24 (Class C).
Why subtract 2 from usable hosts?
The first IP in each subnet is the network address (all 0 host bits), and the last is the broadcast address (all 1 host bits). Neither can be assigned to hosts, so usable hosts = 2^(32-prefix) - 2. /31 and /32 are special cases.
How are /31 and /32 subnets handled?
/31 subnets are point-to-point links (RFC 3021) with 2 IPs both usable, no network or broadcast address. /32 represents a single host address. This tool correctly handles these special cases.

CIDR to IP Range Converter | No Signup, Client-Side · No Server Uploads

Feedback: dexshuang@google.com