Developer tools TOOL

IPv4 and IPv6 CIDR calculator

Calculate the network address, address range and address count.

01

Enter your text

On-device processing
Input · Up to 2 MB
02

Output options

No account. No uploads.

IPv4 and IPv6 CIDR calculator · How to use

Calculate the network address, address range and address count.

Example

192.168.1.0/24 → 256 addresses, last address 192.168.1.255

Things to know

Calculates IPv4 and IPv6 network ranges. It does not connect to hosts or scan ports.

Your files and results are never sent to a server. Everything is processed in this browser.

How to calculate a subnet range from CIDR notation

Check exactly which addresses a /24 or /27 prefix covers before you write a firewall allowlist or plan cloud subnets. The tool only calculates; it does not connect to hosts or scan ports.

When to use this tool

  • Check the address range covered by a firewall rule
  • Count hosts before splitting a VPC subnet
  • Find the subnet mask and broadcast address
  • See where an IPv6 /64 block starts and ends

Step-by-step instructions

  1. Enter an address and prefix length, such as 192.168.1.0/24.
  2. Choose Convert.
  3. Read the network, first, last and addressCount values.
  4. For IPv4, also check subnetMask, broadcast and usableHostCount.

Frequently asked questions

What happens if I enter a host address instead of the network address?

Host bits are cleared according to the prefix, so 192.168.1.77/24 is calculated from network 192.168.1.0. This makes it easy to see which block a particular server address belongs to.

Why do /31 and /32 report a different usable host count?

Most IPv4 blocks exclude the network and broadcast addresses from usable hosts. For /31 and /32 every address is counted as usable, reflecting point-to-point links that use both addresses of a /31.

Does it work with IPv6?

Yes. Enter something like 2001:db8::/48 to get the first address, last address and address count in compressed notation. IPv6 has no broadcast address, so mask and host range fields appear only for IPv4.

Save only the tools you need.