Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

IP subnet calculator

Network, broadcast, host range and masks for any IPv4 or IPv6 block; split a network into subnets and check a list of networks for overlaps.


Like 10.0.5.20/22, 192.168.1.10 255.255.255.0 or 2001:db8::1/48. Examples:


Split into subnets

Check a list of networks


How to use

  1. Type an address with its prefix (/24) or subnet mask (255.255.255.0). The network, broadcast, usable host range, masks and address type appear as you type.
  2. To check whether a device is in that network, type its address in Is this address inside it?
  3. Split into subnets: choose a smaller size and press Split to list every subnet with its host range. Or type how many hosts you need to get the right prefix.
  4. Check a list of networks: paste routes, firewall rules or VLAN plans, one per line. You get every overlap and the shortest exact summary of the whole list.

Keyboard and touch

Tab / Shift+TabMove between boxes and buttons
Enter or SpacePress the focused button
# in the listStarts a comment; the rest of the line is ignored

Tips

  • A /24 has 256 addresses and 254 usable hosts: the first is the network and the last is the broadcast.
  • A /31 has 2 usable addresses and no broadcast; it is used for point-to-point links (RFC 3021). A /32 is a single host.
  • The wildcard mask is the subnet mask flipped; some routers and firewalls use it in access lists.
  • The home ranges 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private: they are not reachable from the internet directly.
  • In IPv6 a normal network is a /64. A /48 site holds 65,536 of them.

About this tool

An IPv4 address is 32 bits. The prefix length says how many of the leading bits name the network; the remaining bits number the hosts. So the network address is the address with all host bits set to 0, and the broadcast address has them all set to 1. IPv6 works the same way with 128 bits, written as eight groups of four hex digits; the shortest form follows RFC 5952.

The summary joins neighbouring and overlapping blocks into the smallest exact list, the same way routers summarise routes. Address types follow the IANA special-purpose registries. Nothing you type leaves your device.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product