IP CIDR Calculator
Calculate subnet details for any IPv4 or IPv6 CIDR block. Enter notation like
192.168.1.0/24 or
2001:db8::/32 to instantly see network address,
broadcast, host range, subnet mask, wildcard mask, and binary representation. All computation runs in your browser.
Frequently Asked Questions
What is CIDR notation?▼
CIDR (Classless Inter-Domain Routing) notation represents an IP address and its network prefix length. For example, 192.168.1.0/24 means the first 24 bits are the network portion, giving 256 total addresses. For IPv6, 2001:db8::/32 means a /32 prefix with 2^96 addresses in the block.
How do I calculate usable hosts in a subnet?▼
For IPv4, usable hosts = 2^(32-prefix) - 2 (subtract network and broadcast addresses). A /24 gives 254 usable hosts, a /30 gives 2, and a /31 gives 2 (RFC 3021 point-to-point). For /32, it's a single host route. IPv6 subnets don't have a broadcast address.
What is a wildcard mask?▼
A wildcard mask is the inverse of the subnet mask. For a /24 subnet (mask 255.255.255.0), the wildcard is 0.0.0.255. Wildcard masks are used in Cisco ACLs and OSPF area configuration where a 1-bit means 'any value' and a 0-bit means 'must match'.
Does this support IPv6?▼
Yes. Enter any valid IPv6 CIDR notation (e.g. 2001:db8::/32 or fe80::/10). The calculator shows the network address, last address in the block, total address count, and binary representation for all 128 bits.
What are private IPv4 address ranges?▼
RFC 1918 defines three private ranges: 10.0.0.0/8 (16.7M addresses), 172.16.0.0/12 (1M addresses), and 192.168.0.0/16 (65K addresses). These are not routed on the public internet. IPv6 uses fc00::/7 (ULA) for private addresses.
What does the binary representation show?▼
For IPv4, the binary view shows the 32-bit representation of the network address, subnet mask, and broadcast address split into four octets (e.g. 11000000.10101000.00000001.00000000). This helps visualize exactly which bits are the network vs host portion.
Related Products
on GumroadDeveloper Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →Premium Workflow Pack
Production-grade workflows, architecture guides, and deployment scripts for teams that ship. 10 advanced CI/CD workflows (blue-green, canary, E2E, security), 5 architecture deep-dives, code review checklist, PR process guide, and 5 battle-tested Bash deployment scripts.
Buy on Gumroad →GitHub Actions CI/CD Templates Pack
12 production-ready GitHub Actions workflow templates covering Node.js, Python, Docker, multi-environment deployments, security scanning, and auto-changelog. Copy, paste, ship.
Buy on Gumroad →You Might Also Need
Infrastructure Cost Calculator
Compare and estimate monthly infrastructure costs for AWS EC2, Azure VMs, and Google Compute Engine. Add storage and data transfer for total monthly cloud cost.
Open free tool →
AWS CDK Infrastructure as Code Guide
Complete AWS CDK guide for TypeScript/Python IaC. Learn constructs (L1/L2/L3), stacks, CDK Pipelines, diff/deploy workflow, and comparison with Terraform and CloudFormation.
Open free tool →
AWS Cost Estimator
Estimate monthly AWS costs for EC2, RDS, S3, CloudFront, and Load Balancers. Interactive calculator with itemized breakdown.
Open free tool →
More Free Tools
Related Articles
Terraform vs Pulumi 2026: Infrastructure as Code Comparison with Code Examples
Complete Terraform vs Pulumi comparison for 2026 — syntax, state management, multi-cloud support, testing, pricing, and when to choose each IaC tool.
AWS CDK vs Terraform vs Pulumi: Infrastructure as Code Comparison 2026
Complete comparison of AWS CDK, Terraform, and Pulumi for infrastructure as code in 2026 — language support, state management, multi-cloud, community, and when to use each.
Pulumi vs Terraform 2026: Which IaC Tool Should You Choose?
A deep comparison of Pulumi and Terraform for infrastructure as code in 2026. Covers syntax, state management, provider ecosystem, team adoption, and when to choose each tool.
Terraform vs Pulumi vs AWS CDK: Infrastructure as Code Comparison 2026
Complete comparison of Terraform, Pulumi, and AWS CDK for infrastructure as code in 2026. Covers language support, state management, learning curve, ecosystem, cloud support, pricing, and when to use each tool.
Terraform vs Pulumi: Infrastructure as Code Comparison 2026
In-depth comparison of Terraform and Pulumi for Infrastructure as Code in 2026. Covers HCL vs real programming languages, state management, provider ecosystem, and when to use each.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →