IPv4 subnet calculator
Calculate the network, broadcast, usable address range and host count from an IPv4 address with a CIDR prefix or subnet mask.
Expand or compress an IPv6 address and calculate its CIDR network, final address and exact address count for prefixes 0–128.
Check a subnet boundary or normalize a long IPv6 address before adding it to a configuration.
Enter an IPv6 address with /prefix, or use the separate prefix field. Copy the compressed or fully expanded address, network CIDR, final address and exact number of addresses. Embedded IPv4 forms such as ::ffff:192.0.2.1 are accepted.
Compression follows RFC 5952: lowercase, the longest zero run, and the first run in a tie. Prefixes range from 0 to 128. IPv6 has no broadcast address; the result is not a claim that every address is assignable. Zone identifiers such as %eth0 are unsupported.
IPv6 does not use broadcast addresses. The final address is the upper boundary of the calculated range, and the count does not mean every address can be assigned.
The CIDR result is the subnet’s network address, so host bits are set to zero. For example, 2001:db8::1234/64 becomes 2001:db8::/64. The compressed and expanded fields still show your input address. A prefix written in the address takes precedence over the separate prefix field.
Your choice about analytics
We use Umami to measure page visits. Analytics is optional, and your tools work either way.
Your current setting allows analytics.
Your current setting does not allow analytics.
The analytics service has changed. Refresh the page after finishing your current work to apply the new settings.
Your browser is sending a Do Not Track or Global Privacy Control signal. Analytics will remain off.
We use Umami to understand which pages people visit and how they find this site. You can decline or change your choice at any time. All site features will still work.
Your choice is saved in this browser for six months. Analytics does not upload files or content you enter in our tools.
Privacy Policy
Comments
0