Subnet calculator for IPv4 and IPv6
Enter an IP address with a prefix or a subnet mask to get the network and broadcast address, the usable host range, the masks and the number of hosts, or split the network into smaller subnets. It all runs in your browser: no account is needed.
One box for IPv4 and IPv6
Type 192.168.1.10/24, 10.0.0.1 255.255.252.0 or 2001:db8::/48. The calculator reads the address, the prefix or the subnet mask, and tells you what is wrong if it cannot.
Find out moreEvery number you need for a subnet
Network and broadcast address, usable host range and count, subnet and wildcard mask, class, address type and a binary view. For IPv6, the full range and its exact size.
Find out moreSplit a network into equal subnets
Enter how many subnets you need and the calculator lists each one with its first and last host and broadcast address.
Find out moreKey takeaways
- This tool calculates an IPv4 or IPv6 subnet from an address and a prefix length in CIDR (Classless Inter-Domain Routing) notation, or for IPv4 a subnet mask, entirely in your browser.
- For IPv4 it shows the network and broadcast addresses, the first and last usable host, the number of usable hosts, the subnet and wildcard masks, the address class and range type, and a binary view.
- It follows RFC 3021 for /31 networks, which have two usable addresses and no broadcast address, and counts a /32 as a single host.
- For IPv6 it shows the compressed (RFC 5952) and expanded address, the first and last address of the range, and the exact number of addresses and of /64 subnets.
- A network can be split into 2 to 256 equal subnets; the tool is free and needs no login.
Frequently asked questions.
Part of HostTracker's website monitoring software.