IPv4 Subnet & CIDR Calculator
Calculate IPv4 network ID, broadcast, subnet/wildcard masks, usable host range, RFC 1918 scope, and binary bits.
Related developer tools
All Developer toolsIP Range to CIDR Converter
Aggregate any start–end IPv4 range into minimal bit-aligned CIDR blocks, or expand CIDR lists back into IP ranges.
Base64 Encoder & Decoder
Encode or decode UTF-8 text and convert local files into Base64 data URLs.
URL Encoder & Decoder
Percent-encode or decode URLs and inspect or edit query string parameters.
UUID Generator
Generate cryptographically random UUID v4 or time-ordered UUID v7 identifiers.
About IPv4 Subnet & CIDR Calculator
Calculate IPv4 network addresses, broadcast addresses, subnet and wildcard masks, first and last usable hosts, RFC 1918 private/public scope, and 32-bit binary octets from any IPv4 address and CIDR prefix.
How to use IPv4 Subnet & CIDR Calculator
- 1
Enter an IPv4 address (or full CIDR such as 192.168.1.42/24) and select a prefix (/0–/32) or type a dotted subnet mask.
- 2
Inspect the calculated network ID, usable host range, broadcast address, wildcard mask, and host counts.
- 3
Review the binary bit alignment table or copy the plain-text summary.
Frequently asked questions
How are /31 and /32 subnets calculated for usable hosts?
A /32 represents a single host route (1 usable address), and a /31 follows RFC 3021 point-to-point link rules with 2 usable addresses and no separate broadcast address.
What is a wildcard mask used for?
A wildcard mask is the bitwise inverse of the subnet mask (e.g. 0.0.0.255 for /24) and is used in router ACLs and OSPF network statements.
Does this calculator recognize private RFC 1918 and CGNAT ranges?
Yes. It flags 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, loopback, link-local, CGNAT (100.64.0.0/10), and multicast blocks automatically.
