IPv4 Subnet & CIDR Calculator
Enter an IPv4 address with a CIDR prefix or netmask to get its network, broadcast, usable host range and wildcard mask. Use it to plan VPC and VLAN subnets, split a network into equal blocks, or check whether an IP falls inside a range.
Private by design: anything you enter is processed in your browser only. It is never uploaded to or logged on our servers. Share links contain the network, the IP being checked and the split settings.
Network vs Host Bits
Subnet Details
Tip: click any value to copy it.
Is IP in this Range?
Enter an IPv4 address to test against the current network.
Subnet Splitter
| # | Subnet | Usable Range | Broadcast | Usable Hosts |
|---|
About IPv4 subnetting and CIDR
An IPv4 address is a 32-bit number, usually written as four decimal octets such as 192.168.1.10. A subnet mask splits those 32 bits into a network portion and a host portion. CIDR (Classless Inter-Domain Routing) notation expresses the mask as a prefix length: /24 means the first 24 bits identify the network, which is the same as the netmask 255.255.255.0.
For any subnet, the address with all host bits set to 0 is the network address and the address with all host bits set to 1 is the broadcast address. Neither can normally be assigned to a device, so a subnet with n host bits has 2n total addresses and 2n − 2 usable hosts. Two exceptions are handled here: a /31 is used for point-to-point links (RFC 3021) where both addresses are usable, and a /32 describes a single host route.
The wildcard mask is the bitwise inverse of the netmask and is used in Cisco ACLs and OSPF configuration. The subnet splitter divides a network into equal, smaller subnets — for example, splitting a /24 into four subnets produces four /26 networks of 62 usable hosts each — which is the basis of planning VLANs, cloud VPC subnets and firewall zones.
The calculator also identifies special-purpose ranges: private RFC 1918 space (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), carrier-grade NAT (100.64.0.0/10), loopback (127.0.0.0/8), link-local (169.254.0.0/16), documentation and multicast blocks. Legacy class (A–E) is shown for reference, although modern routing is classless. All calculations happen locally in your browser.
Related tools: find the public address your network uses on the internet with What Is My IP, and convert addresses or masks between decimal, hex and binary with the number base converter.
Reference Guide
CIDR prefixes from /8 to /32. Usable hosts subtract the network and broadcast addresses, except /31 (point-to-point, RFC 3021) and /32 (single host):
| CIDR | Netmask | Wildcard | Total addresses | Usable hosts |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
Quick mental subnetting: the block size is 256 minus the last non-zero mask octet. A /26 mask is 255.255.255.192, so the block size is 64 and the subnets of a /24 start at .0, .64, .128 and .192.
Special-purpose IPv4 ranges:
| Range | Addresses | Purpose |
|---|---|---|
10.0.0.0/8 | 10.0.0.0 – 10.255.255.255 | Private network (RFC 1918) |
172.16.0.0/12 | 172.16.0.0 – 172.31.255.255 | Private network (RFC 1918) |
192.168.0.0/16 | 192.168.0.0 – 192.168.255.255 | Private network (RFC 1918), most home routers |
100.64.0.0/10 | 100.64.0.0 – 100.127.255.255 | Carrier-grade NAT shared address space (RFC 6598) |
127.0.0.0/8 | 127.0.0.0 – 127.255.255.255 | Loopback (localhost is 127.0.0.1) |
169.254.0.0/16 | 169.254.0.0 – 169.254.255.255 | Link-local, self-assigned when DHCP fails (RFC 3927) |
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 | 3 × 256 | Documentation and examples (RFC 5737), never routed |
198.18.0.0/15 | 198.18.0.0 – 198.19.255.255 | Network benchmarking (RFC 2544) |
224.0.0.0/4 | 224.0.0.0 – 239.255.255.255 | Multicast |
240.0.0.0/4 | 240.0.0.0 – 255.255.255.254 | Reserved; 255.255.255.255 is the limited broadcast address |
Cloud subnets reserve extra addresses, so you get fewer usable hosts than the table above:
| Provider | Reserved per subnet | Which addresses | Usable in a /24 |
|---|---|---|---|
| AWS VPC | 5 | Network address, .1 (VPC router), .2 (DNS), .3 (reserved) and the last address | 251 |
| Azure VNet | 5 | Network address, .1 (default gateway), .2 and .3 (Azure DNS) and the last address | 251 |
AWS subnets must be between /16 and /28.
Example input
Network: 192.168.1.10/24 Check IP: 192.168.1.200 Split: into 4 subnets (/26)
This sample loads automatically when you open the tool. Use Load Sample to bring it back.
Frequently Asked Questions
The number after the slash is the prefix length: how many leading bits identify the network. A /24 has a 255.255.255.0 netmask and 256 addresses, of which 254 are usable hosts.
The first address is the network address and the last is the broadcast address, so they cannot be assigned to hosts. The exceptions are /31 point-to-point links (RFC 3021) and /32 single-host routes.
A wildcard mask is the inverse of the subnet mask (for example 0.0.0.255 for a /24). It is used in Cisco ACLs and OSPF configuration to match a range of addresses.
Related Tools
All Network Tools →What Is My IP Address
Instantly find your public IP address with geolocation detai...
Network Speed Tester
Fast.com-inspired Network Speed Tester. Measure download spe...
Strong Password Generator Online
Generate strong, random passwords with custom length, specia...
TOTP Tester
Generate and verify time-based OTP codes for authenticator a...
SAML Response Analyzer & Validator
Decode, validate, and inspect SAML Response XML online. Veri...
Hash Generator
Generate MD5, SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512 h...