Enter any IPv4 address with a CIDR prefix or mask below — get network, broadcast, usable host range, and masks instantly.
Subnet Calculator
Type any IPv4 address and a CIDR prefix or subnet mask — get the network address, broadcast address, usable host range, host counts, wildcard mask, and binary breakdowns. Instant, accurate, and private.
The subnet accepts CIDR notation (/24), a bare prefix (24), or a dotted mask (255.255.255.0). Everything calculates live as you type.
Binary breakdown
| IP address | |
| Subnet mask | |
| Network | |
| Broadcast |
Quick subnet cheat sheet
| CIDR | Subnet mask | Total addresses | Usable hosts |
|---|
All subnet math runs in your browser. No IP data is sent anywhere or logged.
Calculate subnets instantly — no account, no email, no limits.
Every feature, from binary breakdowns to the cheat sheet, is free.
How to use the subnet calculator
- 1Enter the IP address
Type any IPv4 address, for example 192.168.1.10 or 10.0.0.5. Invalid octets are flagged instantly.
- 2Enter the subnet
Use CIDR notation (/24), a bare prefix (24), or a dotted mask (255.255.255.0) — all three work.
- 3Read the results
Network, broadcast, first and last usable hosts, host counts, masks, and the binary breakdown appear immediately.
- 4Copy or consult the cheat sheet
One click copies the full result as text; the /24–/30 cheat sheet covers the most common subnets.
Why network folks use this calculator
CIDR (/24), bare prefix (24), and dotted mask (255.255.255.0) are all accepted — paste whatever your docs use.
See the IP, mask, network, and broadcast in binary with network bits highlighted, so the math is visible, not magic.
Point-to-point /31 subnets get 2 usable hosts (RFC 3021) and single-host /32 routes get 1 — no off-by-one surprises.
“300.1.1.1” gets a clear explanation of what’s wrong, not a blank page or a cryptic error code.
The /24 through /30 reference table answers “how many hosts in a /27?” without reaching for another tab.
Subnet calculator FAQs
What is a subnet mask?
What’s the difference between the network and broadcast address?
How many usable hosts does my subnet have?
What are /31 and /32 subnets for?
What is a wildcard mask?
Can I enter a dotted mask instead of CIDR?
Is my IP address sent to a server?
Related tools
Convert text to binary and binary back to text.
Unix Timestamp ConverterConvert epoch timestamps to dates and back.
JSON Formatter & ValidatorPretty-print and validate JSON with error highlighting.
Regex TesterTest regular expressions with live match highlighting.
UUID GeneratorCreate random version-4 unique identifiers instantly.
