Convert between CIDR and subnet mask, compute network & broadcast addresses, usable hosts, wildcard mask, and more.
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.0has 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.
