Skip to content

Subnet calculator

Network, broadcast, mask and host range for any IPv4 or IPv6 prefix, worked out on your device.

Runs entirely in your browser — nothing is sent to us.

Write it as CIDR (192.168.10.0/26), as an address and a mask (192.168.10.0 255.255.255.192), or as a single address.

Try

Enter an address and a prefix to see the block it belongs to.

What it calculates#

  • The network address and, for IPv4, the broadcast address of the block your input belongs to.
  • The subnet mask and wildcard mask in dotted decimal, for IPv4.
  • The first and last usable host, and the total and usable address counts.
  • Whether the address is public, private, shared (CGNAT), loopback, link-local or reserved.
  • The binary form of an IPv4 address with the network and host bits marked.
  • Whether another address is inside the block.
  • A split of the block into equal smaller subnets, with the ranges listed.

What you can type#

Accepted input
FormExample
CIDR notation192.168.10.0/26
Address and subnet mask192.168.10.0 255.255.255.192
IPv6 with a prefix2001:db8::/32
A single address198.51.100.7 (read as a /32, or /128 for IPv6)

An address with host bits set, such as 192.168.10.77/26, is fine: the calculator finds the block it belongs to.

A worked example#

192.168.10.77/26
ResultValue
Network address192.168.10.64
Broadcast address192.168.10.127
Subnet mask255.255.255.192
Wildcard mask0.0.0.63
Usable hosts62, from 192.168.10.65 to 192.168.10.126

The CIDR and subnetting guide works this one out by hand, so you can check the method as well as the answer.

Details worth knowing#

  • A `/31` has two usable addresses, not zero, because point-to-point links use both ends (RFC 3021). A /32 is one host.
  • IPv6 has no broadcast address. Every address in a block can be assigned, and a /64 is the normal size of a subnet.
  • The legacy class shown for IPv4 is historical. Nothing routes by class today: see IPv4 address classes.

The calculation runs entirely in your browser, so addresses you type, including private ones from your own network, are never sent anywhere.