IPv4 Subnet Calculator
Runs in browserCalculate IPv4 subnets: network address, broadcast, host range, subnet mask.
Calculate IPv4 subnet masks, network addresses, broadcast addresses, host ranges, and more. Supports CIDR notation. Split subnets into N equal parts. Pure browser-based, no data sent to server.
IPv4 Subnet Calculator tool
| # | Network | First Host | Last Host | Broadcast | Hosts |
|---|---|---|---|---|---|
| 1 | 192.168.1.0/26 | 192.168.1.1 | 192.168.1.62 | 192.168.1.63 | 62 |
| 2 | 192.168.1.64/26 | 192.168.1.65 | 192.168.1.126 | 192.168.1.127 | 62 |
| 3 | 192.168.1.128/26 | 192.168.1.129 | 192.168.1.190 | 192.168.1.191 | 62 |
| 4 | 192.168.1.192/26 | 192.168.1.193 | 192.168.1.254 | 192.168.1.255 | 62 |
Common Subnets Reference
| CIDR | Usable Hosts | Example |
|---|---|---|
| /8 | 16,777,214 | 10.0.0.0/8 |
| /16 | 65,534 | 192.168.0.0/16 |
| /24 | 254 | 192.168.1.0/24 |
| /25 | 126 | 192.168.1.0/25 |
| /26 | 62 | 192.168.1.0/26 |
| /28 | 14 | 192.168.1.0/28 |
| /29 | 6 | 192.168.1.0/29 |
| /30 | 2 | 192.168.1.0/30 |
| /31 | 2 (no host/bcast) | 192.168.1.0/31 |
| /32 | 1 (host route) | 192.168.1.1/32 |
Click a row to set the CIDR prefix.
🔒 Runs in your browser · No uploads · Your data never leaves your device
How to use
Enter an IP and CIDR prefix
Type any IPv4 address and select a prefix length from 0 to 32 using the dropdown.
Read the results
Network address, subnet mask, wildcard, broadcast, first/last usable host, and host count are shown instantly.
Split into subnets
Enter how many subnets to split into — the table shows each subnet's network, host range, and broadcast.
Common use cases
- Planning a VPC or office network — Calculate usable host ranges for /24 or /16 blocks when designing network segments for cloud infrastructure or on-premises environments.
- Splitting a network into subnets — Use the subnet split feature to divide a /20 block into equal /24 subnets for multi-team or multi-zone network layouts.
Examples
Office network
Calculate 192.168.1.0/24.
OutputNetwork: 192.168.1.0 | Broadcast: 192.168.1.255 | Usable hosts: 254
Frequently asked questions
- What is a subnet mask?
- A subnet mask defines which portion of an IP address is the network and which is the host. /24 corresponds to 255.255.255.0 — the first 24 bits are the network.
- What are /31 and /32 subnets?
- /31 has 2 addresses with no broadcast — used for point-to-point links (RFC 3021). /32 is a single host route.
- What is a wildcard mask?
- The wildcard mask is the inverse of the subnet mask. It is used in ACL rules and OSPF configuration. For /24, the wildcard is 0.0.0.255.
Key concepts
- CIDR
- Classless Inter-Domain Routing — a notation like 192.168.1.0/24 that combines an IP address and a prefix length to define a network block.
- Broadcast address
- The last IP address in a subnet, used to send packets to all hosts in the network. It cannot be assigned to an individual host.
Related tools
You might find these useful too.