CIDR & IPv4 Subnet Calculator
Designed for network defenders, cloud architects, and authorized pentesters planning VPC subnets, firewall rules, and scoped infrastructure audits.
Normalized CIDR
10.0.42.0/24
Network Address
10.0.42.0
Broadcast Address
10.0.42.255
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
Usable Host Range
10.0.42.1 – 10.0.42.254
Total Addresses
256
Usable Hosts
254
Address Scope
Private (RFC 1918 · Class A)
IP Binary: 00001010.00000000.00101010.00010011
Mask Binary: 11111111.11111111.11111111.00000000
Practical Scenarios
When & Why to Use CIDR & IPv4 Subnet Calculator
Scoping Authorized Penetration Tests
Verify exact first/last usable host IPs and total host counts inside a client's authorized CIDR range before running scans.
Cloud VPC & Firewall Rule Design
Calculate non-overlapping /20, /24, or /28 subnets and wildcard masks for AWS, Cloudflare, or Linux nftables/iptables ACLs.
Private vs. Public IP Triage
Instantly detect RFC 1918 private blocks, CGNAT ranges (100.64.0.0/10), and loopback addresses during log investigations.
Related Tools
Browse all toolsAuthorized Audit & Recon Commands
Parameterized defensive commands for curl header inspection, openssl TLS verification, nmap, dig DNS/DMARC, ss, and secret scanning.
Security Headers & CSP Builder
Build hardened Content-Security-Policy, HSTS, X-Frame-Options, and Permissions-Policy configs for Next.js, Nginx, or raw HTTP.
Python Regex Lab & Snippet Export
Test regular expressions live with security presets (IPv4, JWT, Email, URL, AWS Keys) and export Python re.compile code.