Subnetting utility

IPv4 & IPv6 Subnet Calculator

Normalize an address, inspect exact boundaries, follow the bit math, split a prefix, or compare two routes. IPv4 masks and ACL wildcards are interpreted explicitly; IPv6 results never invent a broadcast address.

  • Exact 32-bit and 128-bit arithmetic
  • CIDR, netmask, and wildcard input
  • Binary and hexadecimal working
  • Special-use context

Calculate a subnet

Enter CIDR in the first box, or enter a bare address and put its prefix, IPv4 netmask, or IPv4 wildcard in the second.

Combined input such as 10.2.3.4 255.255.255.0 works. IPv6 zone IDs are rejected.

Leave blank when the first box includes a prefix.

Choose explicitly for all-zero or all-one dotted values.

Examples

Read the result correctly

IPv4 edges are contextual

Ordinary IPv4 subnet arithmetic excludes the network and directed-broadcast addresses. A /31 treats both as endpoints only on an RFC 3021 point-to-point link. A /32 is one host route.

IPv6 has no broadcast

IPv6 replaces broadcast functions with multicast. Results show the first and last addresses, not a broadcast or a misleading universal “usable host” count. A /127 has a defined inter-router point-to-point use; a /128 names one address.

Wildcard scope

General ACL wildcards can be non-contiguous. Only the exact inverse of a contiguous subnet mask maps to one CIDR prefix, so other patterns are rejected here.

Local calculation: addresses stay in this page. Exports contain only shown values. Check platform-specific reservations before allocating addresses in a cloud or managed network.