Networking & HTTP

CIDR / Subnet Calculator

Calculate subnets, ranges, and overlaps for IPv4 and IPv6.

  • Draft kept in this tabYour draft is kept in this tab's session storage and cleared when the tab closes.
  • Runs in your browserProcessing happens in this page. No application server receives your input.
Load sample

IP address or CIDR block

Output

What it does

Takes an IPv4 or IPv6 address or CIDR block and computes the network address, netmask, wildcard mask, address range, exact BigInt address counts, and IANA special-purpose scope. Splits blocks into subnets up to SUBNET_LIST_MAX (1,024), converts arbitrary IP ranges into minimal covering CIDRs, and compares blocks for containment, overlap, and route summarization.

Arithmetic and RFC 5952 formatting

All IPv4 and IPv6 calculations run on unsigned 128-bit/32-bit BigInt arithmetic. IPv6 output follows RFC 5952 canonical formatting (lowercase hexadecimal, leading zeros stripped, longest run of at least two 0 hextets compressed once with ::, and ::ffff:a.b.c.d for IPv4-mapped addresses). IPv4 /31 blocks report 2 usable addresses per RFC 3021.

Limits

Computes arithmetically offline and never pings, resolves, or scans any target. Address scopes reflect bundled IANA special-purpose registries (RFC 6890 / RFC 1918 / RFC 4193 / RFC 3849). Subnet splits are capped at SUBNET_LIST_MAX (1,024) entries.

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.