Subnet Calculator
Subnet Calculator (IPv4 CIDR)
Enter an IPv4 address and a prefix length (CIDR such as /24) or a subnet mask (such as 255.255.255.0). The network address, broadcast address, usable host range, number of hosts, wildcard mask and binary representation are calculated instantly. A table of all subnet masks from /0 to /32 is included below.
Results
Binary view
Yellow bits are the network part; the rest is the host part.
Subnet mask and CIDR table
Select a row to use that prefix length.
| CIDR | Subnet mask | Wildcard | Addresses | Usable hosts |
|---|
- For /31 networks both addresses are counted as usable (point-to-point links, RFC 3021); for /32 the single address is the host.
- Address types follow the IANA special-purpose address registry. IPv6 is not supported.
- Calculation happens on this page only; nothing you enter is sent anywhere.
About this tool
Enter an IPv4 address with a CIDR prefix (such as /24) or a subnet mask (such as 255.255.255.0) to calculate the network address, broadcast address, usable host range and count, wildcard mask, binary view and address type (private, public and more). A full subnet mask and CIDR table from /0 to /32 is included; select a row to calculate with it. All calculation runs in your browser.
How to use
- Enter an IPv4 address such as 192.168.1.10 in IP address, or type 192.168.1.10/24 in one go.
- Choose the prefix in CIDR / subnet mask, or type a subnet mask or wildcard mask.
- Results show the network and broadcast addresses, usable range, host count and more.
- Check the network and host bits in the binary view, and use Copy to copy all results.
Useful for
- Checking the usable IP range when configuring a router or office network
- Planning server or cloud (VPC) subnets
- Writing CIDR ranges or wildcard masks for firewall and ACL rules
- Practicing subnetting for networking exams such as CCNA
FAQ
How does CIDR relate to a subnet mask?
/24 means the first 24 of 32 bits are the network part, the same as the mask 255.255.255.0. The table on this page lists every prefix from /0 to /32.
Why are there two fewer usable hosts?
The first address is the network address and the last is the broadcast address, so they are not assigned to devices (except for /31 and /32).
What is a wildcard mask?
It is the inverse of the subnet mask (0.0.0.255 for 255.255.255.0), used in Cisco access lists and OSPF. You can type a wildcard mask into this calculator.
Does it support IPv6?
No, this calculator is for IPv4 only.
Need help with your office network or servers?
We set up servers, domains, DNS and access restrictions for business websites and internal systems.
Contact usUpdates to this tool
All updatesReleased 6 security and network tools: security headers checker, email header analyzer, suspicious URL checker, WHOIS lookup, subnet calculator and browser info
Other free tools
All 183 free tools- What Is My IPShow your IP address and browser, OS and screen details.
- IP Address Location LookupSee the approximate country, region, city and provider of an IPv4 or IPv6 address.
- DNS LookupLook up A, MX, TXT, NS and other DNS records of a domain.
- Redirect and HTTP Header CheckerTrace redirects (301, 302) and view the HTTP headers of a URL.
- Website Down CheckerIs it down for everyone or just you? Check status code, response time, redirects, SSL expiry and server IP.
- WHOIS LookupLook up a domain's registrant, dates, expiry, registrar and name servers, including .jp domains.
- Browser and Device InfoSee your browser, OS, screen size, language and settings, and copy them for support requests.
- Website Security CheckEnter a URL to grade HTTPS, certificates, security headers, WordPress exposure and more, from A to E.