All / Developer

Subnet Calculator

Work out the network, mask, broadcast, host range, and host count for an IPv4 or IPv6 address and prefix, and split a network into subnets.

IPv4 with a /prefix or a dotted mask, and IPv6 with a /prefix. Splitting lists up to the first 256 subnets.

  1. 1Type an address with a prefix or mask, such as 192.168.1.10/24.
  2. 2Read the network, mask, broadcast, and usable host range.
  3. 3Pick a longer prefix to split the network into equal subnets.
Network
192.168.1.0/24
Subnet mask
255.255.255.0
Wildcard
0.0.0.255
Broadcast
192.168.1.255
Usable hosts
192.168.1.1 – 192.168.1.254
Host count
254 usable of 256
Address type
Private (RFC 1918)
NetworkUsable hostsBroadcast
192.168.1.0/26192.168.1.1 – 192.168.1.62192.168.1.63
192.168.1.64/26192.168.1.65 – 192.168.1.126192.168.1.127
192.168.1.128/26192.168.1.129 – 192.168.1.190192.168.1.191
192.168.1.192/26192.168.1.193 – 192.168.1.254192.168.1.255

About this tool

Plan a network or check a firewall rule without doing binary maths by hand.

  • Network, mask, wildcard, broadcast, and usable host range
  • Accepts 10.0.0.0/8 or a dotted mask such as 255.255.255.0
  • Splits a network into equal subnets
  • IPv6 prefixes with the address count and /64s inside
  • Labels private, carrier-grade NAT, link-local, and public ranges

Questions

How many hosts are in a /24?
256 addresses, of which 254 are usable: the first is the network address and the last is the broadcast. A /31 has 2 usable addresses for point-to-point links, and a /32 is a single host.
What is a wildcard mask?
The inverse of the subnet mask, used in Cisco access lists and OSPF. For 255.255.255.0 it is 0.0.0.255.
Does it handle IPv6?
Yes: it shows the network, the last address, the address count, and how many /64 networks fit inside.

Ratings

No ratings yet. The average shows after 3 ratings.

Ratings come from people using this tool. Nobody is paid or rewarded for them, and written reviews are checked for spam before they appear, not for whether they are positive.

Related tools