Tools / CIDR / Subnet Calculator

CIDR / Subnet Calculator.

Calculate network, broadcast, host range and netmask for IPv4 and IPv6 CIDRs, split subnets, convert ranges.

Runs in your browser

Optional, e.g. 26 to list the /26 subnets of a /24 (first 256 are shown).

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Network
Subnets

About CIDR / Subnet Calculator

CIDR / Subnet Calculator works out everything about a network from its address and prefix. Enter 192.168.10.77/24 and it reports the network 192.168.10.0, the broadcast 192.168.10.255, the netmask 255.255.255.0, the wildcard mask 0.0.0.255 used in Cisco ACLs, the first and last usable hosts and the 254 usable addresses. It also tells you that the address has host bits set, which is the most common slip when writing firewall rules or cloud VPC blocks: most tools expect 192.168.10.0/24, not an address inside it. A dotted netmask works as well, so 10.0.0.1 255.255.0.0 is read as a /16, and masks with gaps such as 255.0.255.0 are rejected. Set a subnet prefix to split the network, for example a /24 into four /26 blocks with their own host ranges, which is how you plan VLANs or availability-zone subnets. IPv6 is fully supported without approximations: 2001:db8:abcd::/48 shows the first and last address, the exact number of addresses as a full integer and the number of /64 networks it holds. You can also paste a range like 10.0.0.5 - 10.0.0.20 and get the smallest list of CIDR blocks that covers it exactly. Point to point links follow RFC 3021, so a /31 has two usable addresses and no broadcast. The address type is labelled too: private RFC 1918, carrier-grade NAT, loopback, link-local, documentation, multicast or public. All math runs in your browser.

How to Use

  1. Enter a CIDR such as 10.20.0.0/16, an address with a netmask, an IPv6 prefix or a start - end range.
  2. Optionally choose a longer prefix to split the network into subnets.
  3. Copy the network details or the subnet table.

Frequently Asked Questions

Why does a /24 have 254 usable hosts and not 256?

The first address identifies the network and the last is the broadcast address, so neither can be assigned to a host. /31 and /32 are exceptions with 2 and 1 usable addresses.

What is a wildcard mask?

It is the inverted netmask, for example 0.0.0.255 for a /24. Cisco access lists and OSPF configurations use it.

How many /64 networks are in an IPv6 /48?

65,536. Each /64 holds 2^64 addresses, which is the standard size of a single IPv6 LAN.

Is my input sent anywhere?

No. All calculations happen in your browser; the page makes no network requests while you use it.

Related Tools