Skip to content
Network suite

IP / CIDR Subnet Calculator

Enter an IPv4 CIDR (such as 192.168.1.0/24) and it calculates the network address, broadcast address, subnet mask, wildcard mask, the usable host range (first and last), total addresses and usable host count, and also tells you whether it is a private address. An IP without / is treated as /32 (a single host), and even one with host bits set is normalized to its network address for the calculation. /31 is treated as a point-to-point link (RFC 3021) with both addresses usable. It suits designing VPCs and subnets, checking firewall allow ranges and translating subnet masks. It does not support IPv6 and does not subtract the addresses reserved by AWS or Azure. Everything runs in your browser.

Results

Network CIDR
—
Subnet mask
—
Wildcard mask
—
Network address
—
Broadcast address
—
Usable host range
—
Total addresses
—
Usable hosts
—
Address type
—

Enter a CIDR above to see the breakdown.

Split into subnets

Merge CIDRs and convert ranges

Paste CIDRs or IPs, one per line. Overlapping and adjacent blocks are merged into the fewest CIDRs, which keeps firewall allow-lists short.

IP range → CIDRs

Turns a start and end address into the fewest CIDR blocks that cover exactly that range.

IPv6 prefix calculator

Enter an IPv6 address or prefix (such as 2001:db8::1/64). It gives the short and full forms, the network and last address, the number of addresses, the address type and the ip6.arpa name, and can split the prefix or check whether an address is inside it. Zone IDs and a trailing IPv4 part are accepted.

Guide

How to use & features

  • Type an "IP/prefix" value such as 10.0.0.0/8. If you omit the prefix, it is treated as /32.
  • The network, broadcast, host range, and other values are computed automatically as you type.
  • Use the copy button next to each row to copy an individual value to your clipboard.
  • Special prefixes such as /31 (RFC 3021 point-to-point links) and /32 (single hosts) are handled correctly.
FAQ

FAQ

  • What can I enter?

    An IPv4 CIDR such as `192.168.1.0/24`, or an IP address without `/` (treated as `/32`, a single host). Even `192.168.1.130/24`, with host bits set, is normalized to the network `192.168.1.0/24` for the calculation.
  • What is calculated?

    Network address, broadcast address, subnet mask, wildcard mask, the usable host range (first and last), total addresses, usable host count, and whether it is a private address.
  • How are `/31` and `/32` treated?

    `/32` is a single address with one usable host. `/31` is counted as a point-to-point link (RFC 3021) where both addresses are usable. Otherwise the network and broadcast addresses are excluded.
  • Which ranges count as "private"?

    `10.0.0.0/8`, `172.16.0.0/12` and `192.168.0.0/16`, plus loopback (`127.0.0.0/8`) and link-local (`169.254.0.0/16`).
  • Is the usable host count the same for AWS or Azure subnets?

    No. In AWS and Azure subnets the cloud reserves a few addresses at the start and the last one, so five addresses are unusable in each subnet. The "usable hosts" here is the general networking calculation.
  • Does it support IPv6?

    Yes. The “IPv6 prefix calculator” lower on the page gives short and full forms, the network and last address, the address count, the type, the ip6.arpa name, splitting and an inside-the-range check. The calculator at the top, aggregation and range-to-CIDR are IPv4 only. Everything is calculated in your browser and nothing is sent.
Use cases

Common use cases

  • Designing VPCs and subnets

    When splitting `10.0.0.0/16` into `/24`s, quickly check each subnet's range and host count.
  • Checking firewall and security group ranges

    See from the first and last address exactly which IPs an allowed CIDR covers.
  • Translating subnet masks

    Check at once how `255.255.255.0`, `/24` and the wildcard mask correspond.
  • Network exams and study

    Learn the ideas of network, broadcast and usable hosts by checking real numbers.
Notes

Notes & limitations

  • The top calculator is IPv4 only

    The calculator at the top is IPv4 only. Use the “IPv6 prefix calculator” lower on the page for IPv6 (aggregation and range-to-CIDR are IPv4 only).
  • Cloud-reserved addresses are not subtracted

    In AWS or Azure subnets the cloud uses addresses at the start and end, so the number you can actually use is smaller than shown here.
  • The private check covers the main ranges only

    Only `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`, loopback and link-local are checked. Carrier-grade shared space (`100.64.0.0/10`) and the like are not reported as private.
  • Splitting and summarizing have limits

    Splitting shows up to 256 subnets, and summarizing merges adjacent or contained CIDRs (IPv4 only). It never forces distant ranges into one oversized CIDR.

Articles for this tool

Recent Articles