Microdeck.tools 100% In-Browser

IPv4 & IPv6 CIDR Subnet Calculator

New

Accurate networking workbench for DevOps, cloud VPC planning (AWS/GCP/Cloudflare), and CCNA labs. Handles IPv4 CIDR edge cases (`/31` RFC 3021 point-to-point links and `/32` host routes), binary netmasks, and 128-bit BigInt IPv6 prefix ranges.

100% In-Browser No Server Storage Instant Results
Network Address192.168.10.0/24
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Broadcast Address192.168.10.255
Usable Host Range192.168.10.1 – 192.168.10.254
Usable Hosts / Total254 / 256
Address ScopePrivate (RFC 1918)
Classful BlockClass C
Binary IP: 11000000.10101000.00001010.00101010
Binary Mask: 11111111.11111111.11111111.00000000

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

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

1

Enter an IPv4 CIDR block (e.g., `10.0.12.45/22`) or IPv6 prefix (e.g., `2001:db8:abcd::1/48`).

2

Review instantly computed Network Address, Broadcast Address, Usable Host First–Last bounds, and Total Usable Count.

3

Inspect dotted-decimal Subnet Mask, Cisco-style Wildcard Mask, and 32-bit binary octet visualization.

4

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)

Input
192.168.10.55/24
Output
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)

Input
10.255.0.0/31
Output
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:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

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

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD):Selected:$5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.