NOTA: codice commentato il 2022.01.14 perché già inserito tramite Google SiteKit // exclude auto ads from privacy & cookie policy $currentSlug = basename(get_permalink()); if ($currentSlug != "privacy" && $currentSlug != "privacy-info" && $currentSlug != "cookie" && $currentSlug != "cookie-info") { ?> */ ?> function EzConsentCallback(consent) { // necessary, preferences, statistics, marketing (true or false) if(consent.marketing) { // TODO: do marketing stuff here - like insert ads. } } */ ?> */ ?>
Sunday, December 6, 2026Online since 2014Articles, tutorials, software solutions and open source projects
Tools · Network and DNS

CIDR calculator

Everything about an IPv4 or IPv6 block, from its address and prefix.

In the browser Free, no sign-up required

Calculate

Type an address with its prefix or its mask and press Calculate. Or try an example:

The calculation happens in your browser: the address is not sent to Ryadel or to anyone else.

How to use it

  1. Type an address with its prefix, such as 192.168.1.0/24 or 2001:db8::/48. For IPv4 you can type the mask instead of the prefix: 192.168.1.0 255.255.255.0.
  2. Press Calculate: you get network, mask, first and last address, broadcast and number of hosts, each with its button to copy it.
  3. 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.

Newsletter

New articles and product updates, by email.

We will ask you to confirm your subscription by email. You can unsubscribe at any time; your data is handled as described in the privacy policy.

{"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/monstrance-ryadel/*","/wp-content/themes/monstrance/*","/*\\?(.+)","/*ao_noptirocket*","/*jetpack=comms*","/*kinsta-monitor*","/*ao_speedup_cachebuster*","/*removed_item*","/my-account*","/wc-api/*","/edd-api/*","/wp-json*"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]}