
IPv4 and IPv6 subnet calculator
Enter an address with a prefix, like 192.168.1.10/24 or 2001:db8::/32, and get the network, mask, host range and count. Split blocks into subnets, or turn a range into CIDR.
Runs in your browser. Pasted data never leaves it.
Split into smaller subnets
Range to CIDR
How to use it
- Type an address and prefix (
/24) or an address and netmask. - Read the network, broadcast, first and last host, and number of hosts.
- Use Split to cut the block into smaller subnets.
- Use Range to CIDR to cover a start–end range with the fewest blocks.
Questions
What does /24 mean?
It is the prefix length: how many of the address's bits identify the network. The rest identify the host. /24 means the first 24 of 32 bits are the network, which leaves 8 bits, or 256 addresses (254 usable hosts, because the first is the network address and the last is the broadcast address).
Why are two addresses unusable?
In a normal IPv4 subnet the first address names the network itself and the last is the broadcast address. A /31 (two addresses, used on point-to-point links, RFC 3021) and a /32 (one host) are special cases with no such reservation.
What is the wildcard mask?
The netmask turned upside down (255.255.255.0 becomes 0.0.0.255). It's used by Cisco access lists and OSPF configuration.
Does it handle IPv6?
Yes, with exact 128-bit arithmetic. IPv6 has no broadcast address, and a /64 is the standard size for a LAN. Addresses are shown in both the compressed (2001:db8::1) and full form.
Which private ranges are there?
RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Also 100.64.0.0/10 (carrier-grade NAT), 169.254.0.0/16 (link-local) and 127.0.0.0/8 (loopback). The page labels the kind of address you enter.
Is what I paste or test sent anywhere?
No. This page works entirely inside your browser, and pasted data never leaves your device. It makes no network requests while you use it, and the page also tells your browser to block them (a Content-Security-Policy with connect-src 'none'), so even a bug could not send your data out. To check it yourself, open your browser's developer tools, go to the Network tab, and use the tool: nothing will appear. There is no account, no analytics and no logging.
