How to use it
- Type an address with its prefix, such as
192.168.1.0/24or2001:db8::/48. For IPv4 you can type the mask instead of the prefix:192.168.1.0 255.255.255.0. - Press Calculate: you get network, mask, first and last address, broadcast and number of hosts, each with its button to copy it.
- If you type the address of a host, such as
192.168.1.130/24, the tool finds the network that contains it.
How to read a CIDR
The number after the slash says how many leading bits of the address identify the network; the bits left number the hosts. In /24 the first 24 bits of 32 are fixed, so 8 bits are left: 256 addresses. In IPv4 the first address identifies the network and the last one is the broadcast, so the usable hosts are two fewer. The exceptions are /31, used for point-to-point links, and /32, a single address.
IPv6
IPv6 has no broadcast and a huge number of addresses: an ordinary local network is a /64, that is 264 addresses, and a customer usually gets a /48 or a /56. The tool writes the addresses in the standard short form, with the leading zeros removed and the longest run of zero groups replaced by ::.
Private and special addresses
The type says whether the block is public or part of the reserved ranges: private (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7), shared by providers (100.64.0.0/10), loopback, link-local, multicast, and for documentation, such as 192.0.2.0/24 and 2001:db8::/32.