Free network tool

IPv4 and IPv6 subnet calculator

Calculate IPv4 CIDR networks, broadcasts, usable hosts and masks; split larger blocks into smaller subnets; and plan IPv6 /48, /56 or /64 capacity. No account, API key or payment required.

IPv4 CIDR calculator

Enter an IPv4 address and prefix to find the containing subnet, usable range and subnet mask.

Network / CIDR192.0.0.0/22
Broadcast192.0.3.255
First usable address192.0.0.1
Last usable address192.0.3.254
Usable host count1,022
Total addresses1,024
Subnet mask255.255.252.0
Wildcard mask0.0.3.255

For /31 point-to-point links both endpoints are usable (RFC 3021). A /32 is one host and has no separate broadcast address.

Split into smaller IPv4 subnets

4 × /24 subnets within 192.0.0.0/22.

  • 192.0.0.0/24
  • 192.0.1.0/24
  • 192.0.2.0/24
  • 192.0.3.0/24

IPv6 prefix calculator

Plan address space for RIPE LIRs, ISPs and hosting networks, including /29 and /32 allocations.

Network / CIDR2001:db8::/32
First address2001:db8::
Last address2001:db8:ffff:ffff:ffff:ffff:ffff:ffff
Number of /48 prefixes65,536
Number of /56 prefixes16,777,216
Number of /64 prefixes4,294,967,296

These are mathematical capacities, not RIPE allocation approvals or confirmed available resources. A parent more specific than a target prefix contains zero whole prefixes of that size.

All calculations run in this browser. Inputs are stored only in the shareable page URL; no IP data is sent to an external calculation API. Copy the address bar to share the current inputs.

How CIDR subnetting works

CIDR notation combines a network address with a prefix length: for example, /24 fixes the first 24 IPv4 bits. Longer prefix lengths identify smaller networks. The subnet mask identifies network bits, while the wildcard mask is its complement. IPv6 uses the same prefix concept with 128-bit addresses, so a /32 can be divided into 65,536 /48 networks.

Need a site-by-site address hierarchy? Generate a nibble-aligned plan with our free IPv6 address planner, including customer blocks, /64 examples and growth capacity.

For real-world allocation and routing, review your provider's address plan and the applicable registry requirements. Run our free BYOIP readiness checker to review registration and provider requirements for a chosen prefix. See RIPE IPv6 leasing and BYOIP preparation for AWS and Cloudflare.

Frequently asked questions

How do I calculate an IPv4 subnet from CIDR?

Enter an IPv4 address with its prefix length, such as 192.0.2.0/24. The calculator shows the containing network, broadcast, usable host range, subnet mask and wildcard mask.

Can I split an IPv4 /22 into four /24 networks?

Yes. Enter a /22 and choose /24 as the new prefix length. The calculator lists the four /24 networks in ascending address order.

How many IPv6 /48 networks fit into a /32?

A /32 contains 65,536 separate /48 prefixes. An IPv6 /29 contains 524,288 /48 prefixes, before any operational allocation policy is applied.

Are /31 and /32 IPv4 addresses usable?

Both addresses in a /31 can be usable on a point-to-point link under RFC 3021. A /32 represents one host address and has no distinct broadcast address.

Does the calculator send my IP addresses to a server?

No. Subnet calculations run in your browser without an external calculation API. The current inputs appear in the shareable URL query string.