Calculate IPv4/IPv6 subnets, network/broadcast addresses, usable IP ranges, wildcard masks, and visual bitwise subnet splitting.
Free online CIDR and subnet calculator for DevOps engineers, cloud architects, and software developers. Enter any IPv4 or IPv6 CIDR block, IP/subnet mask pair, or IP/wildcard pair to instantly calculate network address, broadcast address, first and last usable host IPs, total hosts, usable hosts (with AWS 5-reserved IP comparison), IP class, RFC scope, integer/hex representations, and reverse DNS zones (in-addr.arpa / ip6.arpa). Features an interactive 32-bit visual bitmask diagram, subnet splitter table with CSV/Markdown export, cloud VPC presets (AWS 3-tier VPC, GCP, Azure VNet, Kubernetes), and batch IP containment checking.
Keywords: cidr calculator, subnet calculator, ip range calculator, ipv6 subnet calculator, cidr subnet calculator, ip subnet mask calculator, visual subnet calculator, cidr notation calculator, ipv4 cidr calculator, ipv6 cidr calculator, subnet splitter, subnet mask to cidr, wildcard mask calculator, aws vpc subnet calculator, cloud subnet calculator, usable ip calculator, network address calculator, broadcast address calculator, ip containment checker, subnet overlap checker, bitwise subnet calculator
Tags: cidr, subnet, subnetting, ipv4, ipv6, networking, netmask, wildcard, ip-range, vpc, aws, kubernetes, devops
Enter an IPv4 or IPv6 CIDR block (e.g. 10.0.0.0/16, 192.168.1.0/24, or 2001:db8::/32), or switch input mode to IP + Subnet Mask (e.g. 192.168.1.1 with 255.255.255.0) or IP + Wildcard Mask (e.g. 10.0.0.1 with 0.0.255.255).
Select a Cloud Architecture Preset from the presets dropdown (AWS 3-Tier VPC, Google Cloud Auto VPC, Azure VNet, Kubernetes Pod CIDR, or Docker Bridge) to load production-grade networking configurations with a single click.
Use the interactive Prefix Length Slider (/0 to /32 for IPv4, /0 to /128 for IPv6) to dynamically adjust subnet boundaries and instantly see recalculations without reloading the page.
Toggle between Standard Host Mode (RFC 2^N - 2) and AWS Cloud Mode (2^N - 5) to inspect the 5 reserved IP addresses (.0 network, .1 VPC router, .2 DNS, .3 future, .255 broadcast) required for cloud infrastructure planning.
Click the Visual Bitmask tab to inspect the 32-bit octet breakdown with color-coded network, subnet, and host bits, and click any individual bit to adjust the prefix length directly.
Switch to the Subnet Slicer tab to partition your parent CIDR block into smaller subnets (such as slicing a /16 into /24s or /20s), and export the generated subnet table as CSV, Markdown, or a plain text CIDR list.
Open the Containment & Overlap tab to test batch IP addresses against your subnet or verify if two CIDR blocks collide before provisioning VPC peering connections or configuring firewall rules.
Copy individual fields with one click, export the full structured JSON payload (⌘⇧C), or share your calculation via URL parameters.
Dual IPv4 and IPv6 Bitwise Engine: Performs high-performance, accurate bitwise arithmetic in pure TypeScript with zero external server dependencies.
Flexible Input Modes: Calculate subnets using standard CIDR slash notation (/N), IPv4 IP + Dotted Subnet Mask (e.g. 255.255.255.0), or IPv4 IP + Cisco-style Wildcard Mask (e.g. 0.0.0.255).
Interactive 32-Bit Octet Bitmask Map: Visualizes 32 binary bits divided across 4 octets, color-coding Classful Network bits, Subnet bits, and Host bits with click-to-resize prefix functionality.
Real-Time Prefix Length Slider: Smoothly drag between /0 (Default Route) and /32 (Single Host) for IPv4, or /0 and /128 for IPv6, with live host counts and boundary updates.
Cloud VPC Mode (AWS 5-Reserved IPs): Calculates usable host counts accounting for the 5 addresses reserved by Amazon VPC in every subnet block (.0, .1, .2, .3, and .255).
Pre-Configured Architecture Presets: Includes one-click presets for AWS 3-Tier Production VPCs (/16), GCP Auto VPCs (/20), Azure VNets (/16), Kubernetes Pod and Service CIDRs, Docker Bridge networks, and Private Office LANs.
Interactive Subnet Slicer & Table: Divide any parent CIDR block into child subnets (e.g., /16 into 256 /24s) with live filtering, pagination, and multi-format export options.
Multi-Format Export: Export subnetting plans to CSV spreadsheet files, GitHub-flavored Markdown tables, or newline-delimited CIDR lists.
Batch IP Containment Testing: Paste single or multi-line IP address lists to instantly check whether each IP falls within the calculated subnet range.
Subnet Overlap & Collision Detector: Analyze whether two CIDR blocks overlap, are identical, contain one another, or are completely disjoint for VPC peering and routing table safety.
Comprehensive Network Metadata: Calculates IP Class (A, B, C, D, E), RFC Scope (RFC 1918 Private, RFC 6598 CGNAT, Loopback, Link-Local, Public), integer and hex representations, and reverse DNS PTR zones (in-addr.arpa / ip6.arpa).
RFC Standards Compliance: Full support for RFC 3021 (/31 point-to-point subnets with 2 usable hosts), RFC 1122 (/32 host routes), RFC 4291 IPv6 addressing, and RFC 5952 IPv6 canonical representation.
URL State Synchronization: Saves the current CIDR block and active tab in the browser URL for easy bookmarking and team sharing.
100% Client-Side Privacy Guarantee: All calculations and IP inputs are processed locally in your browser with zero telemetry or server-side logging.
REST API Endpoint: Programmatically calculate CIDR subnets, slice subnets, check containment, and detect overlaps via the `/api/tools/cidr-calculator` JSON endpoint.
Keyboard Shortcuts: Boost productivity with ⌘↵ (Calculate), ⌘⇧C (Copy JSON), and ⌘⇧K (Reset).
The CIDR & Subnet Calculator supports 6 SQL dialects. Select the right dialect for accurate formatting and keyword recognition.