Simple online tools for developers, networking, text and conversions.

Network Tools

CIDR Calculator

Calculate network details from CIDR notation including mask, range, broadcast, and usable hosts.

Tool

Use this CIDR Calculator to analyze an IPv4 CIDR block and return important subnet details such as subnet mask, network address, broadcast address, first usable IP, last usable IP, and usable host count. It is useful for subnet planning, firewall rules, routing, network labs, and day-to-day infrastructure work.

About this tool

Use this CIDR Calculator to analyze an IPv4 CIDR block and return important subnet details such as subnet mask, network address, broadcast address, first usable IP, last usable IP, and usable host count. It is useful for subnet planning, firewall rules, routing, network labs, and day-to-day infrastructure work.

Use cidr calculator when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

Learn more

Why use this tool

How to use

  1. Enter an IPv4 CIDR such as 192.168.1.0/24
  2. Click Run Tool to calculate the subnet details
  3. Review the network address, mask, range, and usable hosts
  4. Use the output for planning, troubleshooting, or documentation
  5. Run it again with another prefix to compare subnet sizes

Examples

Example

Input

192.168.1.0/24

Output

CIDR: 192.168.1.0/24
Subnet mask: 255.255.255.0
Network address: 192.168.1.0
Broadcast address: 192.168.1.255
First usable IP: 192.168.1.1
Last usable IP: 192.168.1.254
Total addresses: 256
Usable hosts: 254

A common LAN subnet used in offices, homes, and labs.

Example

Input

10.0.0.4/30

Output

CIDR: 10.0.0.4/30
Subnet mask: 255.255.255.252
Network address: 10.0.0.4
Broadcast address: 10.0.0.7
First usable IP: 10.0.0.5
Last usable IP: 10.0.0.6
Total addresses: 4
Usable hosts: 2

Useful for point-to-point style network examples and small subnets.

Common errors

Entering an IP without a prefix length

Fix: Use full CIDR notation such as 192.168.1.0/24 instead of only an IP address.

Using an invalid prefix like /33

Fix: For IPv4 CIDR, the prefix must be between /0 and /32.

Expecting host ranges that ignore network and broadcast addresses

Fix: Remember that many IPv4 subnets reserve the first and last address for network and broadcast.

FAQ

What does a CIDR calculator do?

A CIDR calculator converts CIDR notation into subnet details such as mask, network range, broadcast address, and usable hosts.

What is CIDR notation?

CIDR notation combines an IP address with a prefix length, such as 192.168.1.0/24.

What is the difference between CIDR Calculator and IP Range Calculator?

CIDR Calculator starts from CIDR notation, while IP Range Calculator may focus more generally on subnet boundaries and host ranges.

Can I use this for IPv6?

This version is focused on IPv4 CIDR calculation.

Why is the usable host count smaller than the total address count?

In many IPv4 subnets, the first address is the network address and the last is the broadcast address, so they are not counted as normal usable hosts.

Use cases

Related tools