IP Subnet Calculator — CIDR & Subnet Mask Calculator

Convert between CIDR and subnet mask, compute network & broadcast addresses, usable hosts, wildcard mask, and more.

Enter an IPv4 address with CIDR (e.g. 192.168.1.10/24)
or IP + mask (e.g. 10.0.0.5 255.255.255.240).





FAQ

Q: What is CIDR?
CIDR (Classless Inter-Domain Routing) expresses the network prefix length like /24, meaning the first 24 bits are network bits.
Q: How do I convert a mask to CIDR?
Count the number of 1 bits in the subnet mask. For example, 255.255.255.0 has 24 ones → /24.
Q: What are usable hosts?
Most subnets reserve network and broadcast addresses; usable hosts = 2^(32−CIDR) − 2. Exceptions: /31 (two addresses for point-to-point per RFC 3021) and /32 (single host).
Q: Can I paste multiple inputs?
This simple UI accepts a single input at a time. You may run multiple calculations sequentially. (Advanced bulk mode can be added on request.)
Q: Is IPv6 supported?
Not in this version — it focuses on IPv4. IPv6 support can be implemented separately.

Disclaimer: This tool is provided for convenience and education. Always verify address calculations in production network devices or with your network documentation. The calculator follows common IPv4 rules and points out special cases (/31, /32).

Scroll to Top