Skip to main content
DevTools24

CIDR Calculator

Calculate IP subnet information from CIDR notation. Find network address, broadcast address, subnet mask, host range, and usable hosts.

Enter CIDR notation (192.168.1.0/24) or IP with subnet mask

Common Subnet Reference

CIDRSubnet MaskUsable Hosts
/8255.0.0.016,777,214
/16255.255.0.065,534
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522
/32255.255.255.2551

Click a row to try that subnet

CIDR Notation - Technical Details

CIDR (Classless Inter-Domain Routing) notation specifies IP addresses and their routing prefix. The number after the slash indicates how many bits are used for the network portion. For example, /24 means 24 network bits and 8 host bits, allowing 254 usable hosts.

Command-line Alternative

# Calculate subnet on Linux\nipcalc 192.168.1.0/24\n\n# On macOS (install with brew)\nbrew install ipcalc\nipcalc 192.168.1.0/24

Reference

View Official Specification