// tool
CIDR Subnet Calculator
Parse CIDR blocks, compute ranges, split into smaller subnets, and check whether an IP lives inside a network.
// split /16 into smaller subnets
| # | Network | Range | Usable |
|---|---|---|---|
| 0 | 10.0.0.0/18 | 10.0.0.1 - 10.0.63.254 | 16,382 |
| 1 | 10.0.64.0/18 | 10.0.64.1 - 10.0.127.254 | 16,382 |
| 2 | 10.0.128.0/18 | 10.0.128.1 - 10.0.191.254 | 16,382 |
| 3 | 10.0.192.0/18 | 10.0.192.1 - 10.0.255.254 | 16,382 |
How CIDR works
Prefix length
The number after the slash is the prefix length. It tells you how many bits of the address are the network portion. /24 means the first 24 bits are the network, leaving 8 bits (256 addresses) for hosts.
Usable vs total
Every normal subnet reserves the first address for the network identifier and the last for broadcast. Usable hosts = total addresses minus 2. Point-to-point links (/31) and host routes (/32) are the exceptions.
Common prefixes
- /32: a single host (1 address)
- /30: 4 addresses, 2 usable (point-to-point link)
- /24: 256 addresses, 254 usable (classic LAN)
- /16: 65,536 addresses (AWS VPC default)
- /8: 16,777,216 addresses (one of the old class-A ranges)
// related simulators
AWS VPC Networking Simulator
Learn AWS networking fundamentals with an interactive VPC simulator. Visualize how traffic flows through public and private subnets, understand NAT Gateways, Internet Gateways, and route tables.
Network Packet Journey
Follow a single HTTP/HTTPS packet through the entire network stack with stunning animations. Learn DNS, TCP, TLS, CDN, load balancing, and more!
DNS Resolution Simulator
Learn how DNS works with an interactive step-by-step simulator. Visualize the DNS hierarchy, understand caching at different levels, and see the difference between recursive and iterative queries.