CIDR Calculator

Calculate IP ranges and subnet details from CIDR notation.

Network Summary
192.168.1.0/24
Class C \u00b7 Private (RFC 1918) \u00b7 254 usable hosts
Network Address 192.168.1.0
Broadcast Address 192.168.1.255
Subnet Mask 255.255.255.0
Wildcard Mask 0.0.0.255
First Usable Host 192.168.1.1
Last Usable Host 192.168.1.254
Total Addresses 256
Usable Hosts 254
IP Class Class C
Address Type Private (RFC 1918)
CIDR Notation 192.168.1.0/24
Binary Representations
IP Address 11000000.10101000.00000001.00000000
Network 11000000.10101000.00000001.00000000
Subnet Mask 11111111.11111111.11111111.00000000
Wildcard 00000000.00000000.00000000.11111111
Broadcast 11000000.10101000.00000001.11111111
Alternative Formats
IP (hex) 0xC0A80100
Mask (hex) 0xFFFFFF00
IP (integer) 3232235776
Network (integer) 3232235776
Common CIDR Reference
CIDRSubnet MaskUsable HostsWildcard
/32255.255.255.25510.0.0.0
/31255.255.255.25420.0.0.1
/30255.255.255.25220.0.0.3
/29255.255.255.24860.0.0.7
/28255.255.255.240140.0.0.15
/27255.255.255.224300.0.0.31
/26255.255.255.192620.0.0.63
/25255.255.255.1281260.0.0.127
/24255.255.255.02540.0.0.255
/23255.255.254.05100.0.1.255
/22255.255.252.01,0220.0.3.255
/21255.255.248.02,0460.0.7.255
/20255.255.240.04,0940.0.15.255
/16255.255.0.065,5340.0.255.255
/8255.0.0.016,777,2140.255.255.255
/00.0.0.04,294,967,294255.255.255.255

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation combines an IP address with a prefix length: 192.168.1.0/24 means the first 24 bits are the network portion. The prefix length (after the slash) determines network size. /24 = 256 addresses, /16 = 65,536 addresses, /8 = 16,777,216 addresses. Smaller prefix = larger network.

How do I find the IP range from a CIDR block?

The calculator computes the network address (first address, all host bits 0), broadcast address (last address, all host bits 1), and the usable IP range (everything in between). For 192.168.1.0/24: network = 192.168.1.0, first usable = 192.168.1.1, last usable = 192.168.1.254, broadcast = 192.168.1.255.

What is the difference between subnet mask and prefix length?

They represent the same information differently. /24 = 255.255.255.0 (24 ones followed by 8 zeros in binary). /16 = 255.255.0.0. /32 = 255.255.255.255 (single host). The calculator shows both the CIDR prefix length and the equivalent dotted-decimal subnet mask for any entry.

How many usable hosts does a CIDR block have?

Usable hosts = 2^(32 - prefix) - 2. The subtraction removes the network and broadcast addresses. /24 = 254 hosts, /25 = 126, /26 = 62, /27 = 30, /28 = 14, /29 = 6, /30 = 2, /31 = 2 (point-to-point), /32 = 1 (single host). The calculator shows total addresses and usable hosts.

Does the calculator support IPv6?

Yes — enter an IPv6 CIDR block (e.g., 2001:db8::/32) and the calculator shows the full network range, prefix length, and number of addresses. IPv6 addresses are 128 bits, so a /64 prefix provides 2^64 (18.4 quintillion) addresses for a single subnet — far more than IPv4.