IP / CIDR Calculator
Calculate subnets, host ranges, and masks for IPv4 CIDR notation.
Quick Presets
Binary Breakdown
Related Tools
Build and analyze Content-Security-Policy headers visually. Generate directives, detect security issues.
Visual Unix permission calculator. Toggle read, write, and execute for owner, group, and other.
Build, explain, and test cron expressions with a visual builder.
How to Calculate IPv4 Subnets and CIDR Ranges
This IP / CIDR calculator takes an IPv4 address and prefix length and shows the network, broadcast, host range, mask, and a binary breakdown. Useful for VPC planning, firewall rules, and reading AWS security groups.
All math is client-side. It does not look up WHOIS or DNS — for name resolution use the DNS lookup tool. IPv6 is out of scope for this calculator.
Tips
/24is 256 addresses (254 usable hosts)./32is a single host.- The first and last addresses in a subnet are network and broadcast on classic Ethernet — cloud VPCs sometimes treat them differently.
- Paste CIDR like
10.0.0.0/16rather than a dotted mask if you already have prefix length.