IP Subnet Calculator
Calculate network, broadcast, and host ranges from an IP and CIDR.
192.168.1.0/24255.255.255.00.0.0.255192.168.1.255192.168.1.1 – 192.168.1.254Recommended next steps
Related tools
Generate random UUIDs (v4), one or many, in your browser.
Test a regular expression against text and see matches and capture groups.
Encode or decode text to and from base64, with a URL-safe variant.
Frequently asked questions
Enter an IPv4 address and a CIDR prefix and it returns the network address, broadcast address, subnet mask, wildcard mask, the usable host range, and the total and usable host counts. It also flags the legacy address class and whether the address falls in a private (RFC 1918) range.
The prefix is the number of leading bits that identify the network. /24 means the first 24 bits are the network and the last 8 are for hosts, giving a 255.255.255.0 mask and 256 addresses (254 usable). A smaller number is a larger network: /16 has 65,536 addresses, /30 has just 4.
Normally the network and broadcast addresses aren't usable for hosts, so a /24 has 254 usable. A /31 is a point-to-point link (RFC 3021) where both addresses are usable, and a /32 is a single host. The calculator handles these special cases instead of subtracting two blindly.
No. Every calculation runs in your browser with plain arithmetic — nothing you type is uploaded or logged. You can use it offline once the page has loaded.
Last updated 2026-06-23.