CIDR Calculator

CIDR Calculator

Analyze IPv4 CIDR blocks instantly with derived subnet mask, network and broadcast addresses, usable host range, wildcard mask, and host counts. Perfect for route planning, cloud networking, and infrastructure operations.

cidr
ipv4
network
Share this tool:
Quick Presets
Examples for cidr calculator workflows
IPv4 Input & Settings
Enter an IPv4 address in CIDR notation to inspect the derived network details and usable range.
Characters: 0
Lines: 0
Bytes: 0
How it works: This calculator parses an IPv4 address with CIDR notation, then derives the matching subnet mask, network range, usable addresses, and wildcard mask without any server processing.

Complete Guide: CIDR Calculator

Everything you need to know about using this tool effectively

What is CIDR Calculator?

The CIDR Calculator computes network details from a CIDR (Classless Inter-Domain Routing) notation like 192.168.1.0/24. It calculates the network address, broadcast address, subnet mask, wildcard mask, total hosts, and usable host range. All processing happens in the browser.

This tool parses a CIDR notation string (IP address and prefix length), applies bitwise operations to compute the network and broadcast addresses, and derives the subnet mask, wildcard mask, and host count. It handles both IPv4 CIDR notation.

Key Features
Calculates network and broadcast addresses
Shows subnet mask and wildcard mask
Total hosts and usable host range
Binary representation of addresses
Copy results to clipboard
IPv4 support
Runs in the browser with no uploads
Real-time calculation
Common Use Cases
When and why you might need this tool

Planning network subnets

Calculate how many hosts fit in a /24, /25, or /26 subnet for network design.

Troubleshooting network issues

Determine if two IP addresses are on the same subnet by comparing their network addresses.

Configuring firewall rules

Calculate the exact IP range for a CIDR block to configure firewall allow/deny rules.

Learning subnetting

Understand how CIDR notation maps to network addresses and host ranges.

How to Use This Tool
Step-by-step guide to get the best results
1

Enter CIDR notation

Type an IP address with prefix length (e.g., 192.168.1.0/24).

2

Calculate

Click Calculate. The tool shows all network details.

3

Copy results

Copy the network address, subnet mask, or other values you need.

Pro Tips
1

/24 gives 256 addresses (254 usable hosts). /25 gives 128 (126 usable).

2

/32 is a single host. /31 is a point-to-point link (2 addresses).

3

The first address in a subnet is the network address. The last is the broadcast address.

4

Usable hosts = total addresses minus 2 (network and broadcast).

Frequently Asked Questions
What is CIDR notation?

CIDR notation represents an IP address and its network prefix length, like 192.168.1.0/24. The /24 means the first 24 bits are the network portion.

How many hosts fit in a subnet?

2^(32-prefix) - 2 usable hosts. A /24 has 254 usable hosts. A /28 has 14.

Is my data sent to a server?

No. All calculation happens in your browser. Nothing is transmitted.

What is the difference between network and broadcast addresses?

The network address identifies the subnet (all host bits zero). The broadcast address reaches all hosts on the subnet (all host bits one). Neither can be assigned to a host.

Can I calculate subnet ranges?

Yes. Enter any CIDR block and the tool shows the full range from the first usable host to the last usable host.