Subnet Calculator
Work out the network, broadcast, usable host range, and address count for any IPv4 or IPv6 CIDR block.
You can also paste address/prefix here.
IPv4 subnet details
| CIDR notation | 192.168.1.0/24 |
| Netmask | 255.255.255.0 |
| Wildcard mask | 0.0.0.255 |
| Network address | 192.168.1.0 |
| Broadcast address | 192.168.1.255 |
| First usable host | 192.168.1.1 |
| Last usable host | 192.168.1.254 |
| Host address range | 192.168.1.1 – 192.168.1.254 |
| Total addresses | 256 |
| Usable hosts | 254 |
| IP class | Class C |
| Address type | Private (RFC 1918) |
| Netmask (binary) | 11111111.11111111.11111111.00000000 |
Everything is computed in your browser — the address you type never leaves your device.
About Subnet Calculator.
Calculate Any IPv4 or IPv6 Subnet
Enter an IP address with a CIDR prefix — or an IPv4 subnet mask — and get the network address, broadcast address, first and last usable host, total and usable host counts, the wildcard mask, and the full address range, updated live as you type.
IPv4 is computed with exact 32-bit integer math and IPv6 with 128-bit BigInt math, so even a /0 or a /48 reports the correct address count without rounding. It also handles the edge cases many calculators skip: /31 point-to-point links (RFC 3021), /32 single hosts, private, loopback, and link-local ranges, and :: zero-compression in IPv6.
One honest note on IPv6: it has no broadcast address and does not reserve the first and last host, so the whole prefix is reported as usable — that is expected behavior, not a missing feature.
- Plan a network: pick a prefix and see exactly how many usable hosts it gives you before you commit an addressing scheme.
- Firewall and ACL rules: turn a CIDR block into its precise host range and wildcard mask for router, firewall, and access-list configs.
- Study for certs: check your subnetting answers for CCNA, Network+, or a networking class in seconds.
- IPv6 addressing: work out the network and range for a /48, /56, or /64 delegation and read the compressed and expanded forms side by side.
- Troubleshoot: confirm whether two addresses fall inside the same subnet by comparing their network addresses.
- Convert mask to CIDR: paste a dotted subnet mask like 255.255.255.0 and read back the equivalent /24 prefix.
Privacy: This calculator runs entirely in your browser. The addresses and prefixes you enter never leave your device — nothing is uploaded, logged, or stored, which matters when you are working with internal or client network details.
How to use Subnet Calculator.
Upload your file
Drag and drop or click to select your file.
Choose settings
Adjust quality, size, or format options.
Download result
Your processed file is ready instantly.
Related dev tools.
Privacy-first tools that work everywhere.
Need more than a tool?
Custom websites and web apps that you own — from $799 one-time.
Explore all 188 tools