How to use it
- Type a network or an address with its prefix, for example
192.168.1.10/24or2001:db8::/48; for IPv4 a netmask or a wildcard mask works too. - Read the network, the host range and the number of hosts; they change as you type.
- To check an address, type it under “Is this address in the network?”.
- Choose a longer prefix to split the network into subnets, and download the list as CSV if you need it.
Rules and limits
How the network is worked out
- Input: an address with a prefix length (
/24); for IPv4 also with a netmask (255.255.255.0, after a slash or a space) or a wildcard mask (0.0.0.255). An address without a prefix is one host. Host bits may be set: the network is worked out from them. - IPv4 parts are decimal without leading zeros:
010.0.0.1is refused, because some programs read 010 as octal 8. IPv6 is written in lower case with the longest run of zero groups as::, and IPv4-mapped addresses as::ffff:192.0.2.1. Zone IDs (%eth0) are refused. - Usable hosts: for IPv4 every address but the network and the broadcast address; /31 both (RFC 3021) and /32 the one address. For IPv6 every address but the first, the Subnet-Router anycast address (RFC 4291); /127 both (RFC 6164) and /128 the one.
- All numbers are exact, also for the largest IPv6 networks (a /0 has 340,282,366,920,938,463,463,374,607,431,768,211,456 addresses).
Tested limits
- Checked against Python’s ipaddress module: 12,000 random IPv4 and IPv6 networks in every input form (1,094 of them /31 or /32 and 897 /127 or /128) give the same fields, and so do 4,000 splits and membership checks. Of 3,000 damaged texts, every one Python refuses is refused here too; the 6 that only Python reads hold a zone ID or a space.
- The page lists 256 subnets at a time and writes at most 65,536 into one CSV file. On the test laptop (the page’s code in Node.js 24, not timed in the browser) 10.0.0.0/8 into /24 (5.1 MB) took 1.3 s and 2001:db8::/48 into /64 (10.3 MB) 3.3 s.
Questions and answers
Why does a /31 have two usable hosts and not zero?
A link between two routers needs only two addresses, and no device on such a link sends to a broadcast address. Using a /31 there saves half of the addresses a /30 would take.
Why is there no broadcast address for IPv6?
IPv6 does not use broadcast at all: it reaches groups of devices with multicast. So the last address of an IPv6 network is an ordinary address.
What is a wildcard mask for?
Cisco access lists and OSPF network statements take the inverted mask, where a 1 bit means “any value”. 0.0.0.255 matches the same addresses as 255.255.255.0.
Is anything sent over the network?
No. The calculation runs in your browser; the page does not look anything up and sends nothing.