JoyToolsJoyTools

IPv4 CIDR Calculator

100% Client-Side Private — Zero Server Uploads

Calculate network address, broadcast address, subnet mask, wildcard mask, and usable host range from CIDR notation.

🔒 100% Client-Side: All data is processed locally in your browser and never leaves your device (Zero Server Uploads).
E-E-A-T Security Proof →
Interactive Workspace
Quick Subnet Presets:
CIDR Notation
192.168.1.1/24
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Usable Host Range
192.168.1.1 - 192.168.1.254
Total Usable Hosts
254
IP Class & Type
Class C (Private)
Binary Netmask
11111111.11111111.11111111.00000000
Share & Developer Embed

How do I use IPv4 CIDR Calculator?

1

Enter an IPv4 address (e.g., `192.168.1.0`) and select a CIDR prefix length (`/1` to `/32`), or click 'Sample (192.168.1.0/24)'.

2

Inspect the computed Network Address, Broadcast Address, Subnet Mask, Wildcard Mask, and First/Last Usable Host IP.

3

Copy any subnet parameter for your AWS VPC, Kubernetes cluster, Terraform, or firewall configuration.

What features does IPv4 CIDR Calculator offer?

Instant bitwise IPv4 network calculation

Subnet Mask, Wildcard Mask, Network & Broadcast IP computation

Usable Host IP range and total host capacity calculation

Binary Netmask representation and IP class identification

RFC 4632 Classless Inter-Domain Routing (CIDR) & RFC 1918 Subnet Reference

An IPv4 CIDR block `/N` locks the leading $N$ bits of the 32-bit address as the network prefix, leaving $32 - N$ host bits ($2^{32-N} - 2$ usable host IPs for standard `/1`–`/30` subnets).

Common IPv4 CIDR Blocks, Subnet Masks & Usable Host Counts
CIDR PrefixDotted-Decimal MaskTotal IPs ($2^{32-N}$)Usable Hosts (Standard / AWS VPC)
/16255.255.0.065,53665,534 hosts (AWS VPC max block)
/24255.255.255.0256254 standard / 251 in AWS VPC
/28255.255.255.2401614 standard / 11 in AWS VPC (min subnet)
/30 & /31255.255.255.252 / .2544 / 22 hosts (/30) or 2 point-to-point RFC 3021 (/31)

Frequently Asked Questions about IPv4 CIDR Calculator

Why does a standard CIDR subnet subtract 2 addresses from the total IP count ($2^{32-N} - 2$)?

In standard IPv4 routing (prefixes `/1` through `/30`), the very first address (all host bits `0`) is reserved as the Network Identifier, and the very last address (all host bits `1`) is reserved as the Directed Broadcast Address.

Why do AWS VPC, GCP, and Azure subnets provide 3 fewer usable IPs than standard CIDR math?

Cloud virtual networks reserve 5 IP addresses per subnet instead of 2: `.0` (Network), `.1` (VPC Router), `.2` (Cloud DNS), `.3` (Future use), and `.255` (Broadcast). Thus a `/24` in AWS yields $256 - 5 = 251$ usable IPs.

How do `/31` and `/32` CIDR blocks work if $2^{32-N} - 2$ is 0 or negative?

A `/32` (`255.255.255.255`) represents a single specific host route (1 usable IP). A `/31` (`255.255.255.254`) is defined by RFC 3021 for point-to-point router links with no broadcast traffic, yielding 2 usable IPs.

What are the RFC 1918 private IPv4 address ranges?

RFC 1918 reserves three non-routable private ranges for internal LANs and VPCs: `10.0.0.0/8` (`10.0.0.0`–`10.255.255.255`), `172.16.0.0/12` (`172.16.0.0`–`172.31.255.255`), and `192.168.0.0/16` (`192.168.0.0`–`192.168.255.255`).