Skip to content

CIDR Calculator

Embed

Paste this where you want CIDR Calculator on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/cidr-calculator/" width="100%" height="500" frameborder="0" loading="lazy" title="CIDR Calculator"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/cidr-calculator/">CIDR Calculator</a> by BrowserUtils</p>

Calculate CIDR ranges, subnet masks, host counts.Runs in this tab.

Network Address192.168.1.0
Broadcast Address192.168.1.255
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Subnet (Binary)11111111.11111111.11111111.00000000
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Total Addresses256
Usable Hosts254
CIDR Prefix/24
IP ClassC

Next step

About CIDR Calculator

Free online CIDR calculator. Calculate network address, broadcast address, subnet mask, wildcard mask, and host count from any CIDR notation. It runs in your browser. Nothing is sent to a server.

Questions

What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation represents an IP address and its network prefix length, written as IP/prefix (e.g., 192.168.1.0/24). The prefix length indicates how many bits define the network portion.
How do I calculate the number of hosts in a subnet?
The number of usable hosts is 2^(32 - prefix length) - 2. The subtraction of 2 accounts for the network address and broadcast address. For example, a /24 network has 2^8 - 2 = 254 usable hosts.
What is a subnet mask and how does it relate to CIDR?
A subnet mask is a 32-bit number that separates the network and host portions of an IP address. A /24 CIDR prefix is equivalent to a subnet mask of 255.255.255.0. The CIDR calculator shows both representations.
What is the broadcast address in a subnet?
The broadcast address is the last address in a subnet, used to send packets to all hosts on that network. For example, in 192.168.1.0/24, the broadcast address is 192.168.1.255.
Does the CIDR calculator work offline?
Yes, all subnet calculations are performed locally in your browser using JavaScript. No network requests are made.

More in Web & Networking

All 23 web & networking