Quick Tools Logo Quick Tools

CIDR Calculator

Convert IP ranges to CIDR and expand CIDR blocks.

CIDR Reference

CIDR Subnet Mask Total IPs Usable
/32255.255.255.25511
/30255.255.255.25242
/28255.255.255.2401614
/24255.255.255.0256254
/16255.255.0.065,53665,534
/8255.0.0.016,777,21616,777,214

📘 How It Works

1

Range to CIDR

Calculates the CIDR blocks needed to exactly cover an IP range from start to end.

2

CIDR Expansion

Lists all IP addresses within a CIDR block (limited to /24 or smaller for display).

3

Range Calculation

Uses binary math to find the largest power-of-2 aligned blocks that fit within the range.

💡 Common Use Cases

Firewall Rules

Convert IP ranges to CIDR blocks for security group and ACL configurations.

Route Summarization

Aggregate multiple routes into fewer CIDR blocks to reduce routing table size.

IP Allocation

Plan and document IP address assignments using CIDR notation.

Cloud Networking

Define VPC subnets, peering ranges, and security policies in AWS/Azure/GCP.

Related Networking Tools Tools