Skip to main content
NeatUtility

CIDR & Subnet Calculator

Web & API100% Client-Side
Ready
TEXT
0 lines0 chars
0 B
About this tool, examples & FAQ

Calculate IPv4 and IPv6 subnet metrics instantly: determine network addresses, broadcast addresses, subnet masks, wildcard masks, usable host ranges, and total address capacity with zero network requests and complete client-side privacy.

Key facts

Verified capabilities and limits of this utility
Subnetting StandardsRFC 4632 (CIDR), RFC 1918 (Private IPv4), RFC 3021 (/31 Point-to-Point), RFC 4291 (IPv6)
Supported ProtocolsIPv4 (32-bit dotted decimal) and IPv6 (128-bit hexadecimal)
Maximum Input10 KB
Execution Deadline2 s

How to use

  1. Enter an IPv4 or IPv6 address with a slash CIDR prefix (e.g., 192.168.1.10/24 or 2001:db8::/32).
  2. Choose between formatted summary table or structured JSON output.
  3. Optionally toggle binary representation or RFC 3021 /31 point-to-point support in options.
  4. Click Run (or press Ctrl/Cmd + Enter) to calculate subnet properties immediately.
  5. Copy or download the resulting network configuration for your router, VPC, or firewall.

Example

Calculate IPv4 Class C /24 subnet

Input

192.168.1.10/24

Example output

IP Address:        192.168.1.10
CIDR Block:        192.168.1.0/24
Subnet Mask:       255.255.255.0
Wildcard Mask:     0.0.0.255
Network Address:   192.168.1.0
Broadcast Address: 192.168.1.255
Usable Host Range: 192.168.1.1 - 192.168.1.254
Total Addresses:   256
Usable Hosts:      254
IP Class:          Class C (/24 default)
Scope:             Private (RFC 1918 - Class C)

Edge cases

Point-to-Point /31 Subnets (RFC 3021)

Under traditional subnetting, /31 subnets have 0 usable hosts because network and broadcast take both IPs. With RFC 3021 enabled (default), both addresses are treated as usable endpoints for point-to-point router links.

Single Host /32 Subnets

A /32 prefix denotes an individual host or loopback route where the network address, broadcast address, and host address are all identical, yielding exactly 1 usable host.

IPv6 Astronomical Address Space

IPv6 subnets handle 128-bit addresses calculated with BigInt precision, accurately formatting massive host counts without JavaScript 64-bit float precision loss.

How it works

  1. Parses dotted-decimal octets or colon-separated IPv6 hex groups into exact binary bitwise integers.
  2. Derives subnet mask and wildcard masks by bitwise shifting 1s across the prefix length.
  3. Calculates network boundary via bitwise AND and broadcast boundary via bitwise OR.
  4. Categorizes address scope (Private RFC 1918, CGNAT RFC 6598, Loopback, Link-Local, Public) completely client-side in your browser.

Frequently asked questions

What does CIDR stand for?

CIDR stands for Classless Inter-Domain Routing. It replaces legacy class-based IP assignment (Class A, B, C) with flexible prefix lengths indicated by a trailing slash (e.g., /24).

Why are usable hosts calculated as total addresses minus 2?

In standard IPv4 subnets (/30 and larger), the first address is reserved as the network identifier and the final address is reserved as the all-hosts broadcast address.

Does this tool ping or send network packets to the calculated IP address?

No. All calculations are pure local mathematical bitwise operations performed in your browser. No packets, DNS lookups, or network calls are ever generated.

References