Your data is never sent to a server or stored anywhere. All processing happens in your browser.

CIDR Calculator

Network Information
Network Address
Broadcast Address
Subnet Mask
Wildcard Mask
First Usable Host
Last Usable Host
Total Addresses
Usable Hosts
Prefix Length
IP Class
Private Range

How to Use


Enter an IPv4 address in CIDR notation (e.g., 192.168.1.0/24). The tool instantly calculates network address, broadcast address, subnet mask, wildcard mask, host range, and total number of usable hosts.

CIDR Notation


CIDR (Classless Inter-Domain Routing) notation combines an IP address with a prefix length separated by a slash. The prefix (0-32) indicates how many bits define the network portion. /24 means the first 24 bits are the network (256 addresses), /16 means 65,536 addresses, and /32 is a single host. CIDR replaced the older classful addressing system.

Use Cases


  • VPC/subnet design: calculate IP ranges and host counts when splitting subnets in AWS VPC or GCP VPC
  • Firewall rules: determine the exact CIDR range to allow or deny in security groups or iptables rules
  • Network troubleshooting: verify whether a target IP falls within the same subnet during connectivity issues
  • IP address planning: choose the right prefix length for the number of hosts needed per office or site

Common CIDR Prefixes


  • /32 = 1 address: single host — used in firewall rules to allow or block a specific IP
  • /28 = 16 addresses (14 usable): small subnet — the minimum recommended VPC subnet size in AWS
  • /24 = 256 addresses (254 usable): the most common subnet — ideal for office LANs and small server pools
  • /16 = 65,536 addresses: large network — the default AWS VPC CIDR (e.g., 10.0.0.0/16)
  • /8 = ~16.7 million addresses: very large network — 10.0.0.0/8 covers the entire Class A private space

Privacy


All calculations happen entirely in your browser. No IP addresses or network data is sent to a server, stored, or logged.

FAQ


What is the difference between total addresses and usable hosts?

Total addresses is the full count of addresses in the subnet. Usable hosts is that number minus the network address and the broadcast address, giving the count you can actually assign to devices.

Are the IP addresses I enter sent to a server?

No. All calculations happen entirely in your browser, and no IP addresses or network data is ever sent to, stored on, or logged by any server.

Does it support IPv6?

No. This tool is IPv4-only and works with prefixes from 0 to 32. It does not calculate IPv6 address ranges.

Can I enter an address with a host portion instead of the network address?

Yes. If you enter something like 192.168.1.50/24, the tool still derives the correct network and broadcast addresses based on the prefix length.

Does it detect private ranges and IP class?

Yes. It automatically reports whether the address falls in a private range (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and identifies its IP class such as A, B, or C.