How It Works Under the Hood
IPv4 calculations operate on unsigned 32-bit bitwise integers (`>>> 0`) to derive subnet mask, inverse wildcard mask, network ID, broadcast address, first/last usable host, and scope tags (RFC 1918 Private, RFC 6598 CGNAT, Loopback, Link-Local). IPv6 uses native JavaScript 128-bit `BigInt` arithmetic to avoid 53-bit float precision loss.
Step-by-Step Instructions
Enter an IPv4 CIDR block (e.g., `10.0.12.45/22`) or IPv6 prefix (e.g., `2001:db8:abcd::1/48`).
Review instantly computed Network Address, Broadcast Address, Usable Host First–Last bounds, and Total Usable Count.
Inspect dotted-decimal Subnet Mask, Cisco-style Wildcard Mask, and 32-bit binary octet visualization.
Test cloud routing edge cases like `/31` point-to-point links and `/32` firewall single-host rules.
Key Features & Performance
- Both IPv4 (32-bit) and full 128-bit BigInt IPv6 prefix arithmetic
- Proper RFC 3021 `/31` handling (2 usable point-to-point hosts, no broadcast reservation) and `/32` single-host handling
- Shows Dotted Subnet Mask, Inverted Wildcard Mask, Hex Mask, and Binary Bits
- Detects RFC 1918 private blocks (`10/8`, `172.16/12`, `192.168/16`), CGNAT (`100.64/10`), Loopback, and Documentation ranges
- Runs 100% client-side with zero logging of internal corporate network topologies
Methodology, Formulas & Technical Standards
For IPv4 `/0` through `/30`, usable host count equals `(2^(32 - prefix)) - 2` (excluding network and broadcast). Per RFC 3021, `/31` yields `2` usable addresses for point-to-point router links; `/32` yields `1` host address. IPv6 expands `::` shorthand to 8 hextets before applying a 128-bit mask.
Common Real-World Use Cases
- Designing non-overlapping VPC/subnet CIDR allocations for Terraform on AWS, GCP, or Cloudflare
- Computing Cisco ACL wildcard masks (`0.0.1.255` for `/23`) quickly without manual binary subtraction
- Checking whether a staging IP falls inside `172.16.0.0/12` private space vs `100.64.0.0/10` Tailscale/CGNAT space
- Verifying IPv6 `/48` or `/64` block boundaries
Worked Examples & Edge Cases
AWS VPC Subnet (/24 vs /23)
192.168.10.55/24
Network: 192.168.10.0 | Broadcast: 192.168.10.255 | Usable: 192.168.10.1 – 192.168.10.254 (254 hosts)
Wildcard mask: `0.0.0.255`. Classification: RFC 1918 Private.
Router Point-to-Point Link (/31)
10.255.0.0/31
Usable Range: 10.255.0.0 – 10.255.0.1 (2 hosts per RFC 3021)
Standard `/31` links do not waste 2 addresses on network/broadcast.
Limitations, Scope & Accuracy Notes
- • Public cloud providers (AWS/Azure/GCP) often reserve 4–5 additional IPs inside each subnet (router, DNS, future use) beyond mathematical CIDR usable counts.
- • Does not perform live WHOIS, BGP ASN, or active DNS lookups since the tool operates strictly offline.
Local Browser Processing & Privacy
Traditional web converters upload your documents, snippets, or media files to remote servers. IPv4 & IPv6 CIDR Subnet Calculator runs inside your browser tab:
Your input text and files are processed locally without uploading payloads to a processing server.
Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).
Working outputs stay in your browser tab and are released when you reset the tool or close the tab.
Frequently Asked Questions
Why does a /31 subnet show 2 usable hosts instead of 0?
RFC 3021 defines `/31` specifically for point-to-point router links where both addresses are assignable without broadcast overhead.
What is a Wildcard Mask?
It is the bitwise inverse of the subnet mask (`255.255.255.255 XOR netmask`), heavily used in Cisco ACLs and OSPF network statements.
Why use BigInt for IPv6 calculations?
JavaScript numbers are 53-bit precision IEEE-754 floats and lose accuracy past `/53`. Using `BigInt` guarantees exact 128-bit math.
Are corporate internal IPs kept private?
Yes. Calculations occur locally via bitwise JavaScript operations with no server API calls.
Explore Related Micro-Tools
SSL Certificate & CSR Decoder (PEM / DER)
Inspect X.509 .pem/.crt chains, SANs, expiry countdowns, CSRs & convert PEM ↔ DER
Unix chmod & umask Permission Calculator
Convert between octal (0755, 4755), symbolic (rwxr-xr-x) and umask defaults with visual bits
cURL to Fetch, Axios, Python & Go Converter
Parse cURL commands offline into clean JavaScript Fetch, Axios, Python requests, or Go net/http code