Finish the subnet plan from a single CIDR line
Paste an IPv4 or IPv6 range and get the network and broadcast addresses, first and last usable hosts, subnet and wildcard masks, exact address counts and binary notation. Reserved addresses that AWS, Azure and Google Cloud quietly take are subtracted so you see what you can actually assign.
In one line: CidrPlan is a free CIDR and VPC subnet planner that runs entirely in your browser. No server, no account, and nothing you type is sent anywhere.
- 32/128exact IPv4 and IPv6 bits
- 4cloud reservation models
- FLSM·VLSMsplitting modes
- 0data sent out
CIDR calculator
Enter an address and prefix to get the network and broadcast addresses, usable host range, masks and binary form at once. A host address is normalised to its network address.
Summary
| CIDR | 10.0.0.0/16 |
|---|---|
| Network address | 10.0.0.0 |
| Broadcast address | 10.0.255.255 |
| First usable host | 10.0.0.1 |
| Last usable host | 10.0.255.254 |
| Total addresses | 65,536 |
| Usable hosts | 65,534 |
| Subnet mask | 255.255.0.0 |
| Wildcard mask | 0.0.255.255 |
| Prefix | /16 |
Binary notation
Network address: 00001010.00000000.00000000.00000000 Subnet mask: 11111111.11111111.00000000.00000000
Cloud VPC reserved IPs
The same /24 gives you a different number of assignable addresses on each cloud. Usable counts after reservations and the allowed prefix range are shown together.
| Cloud | Reserved addresses | Usable | Allowed prefix |
|---|---|---|---|
| Standard (RFC)/0 – /32 | network 10.0.0.0broadcast 10.0.255.255 | 65,534 | /0 – /32 |
| AWS VPC/16 – /28 | network 10.0.0.0router 10.0.0.1DNS 10.0.0.2future use 10.0.0.3broadcast 10.0.255.255 | 65,531 | /16 – /28 |
| Azure VNet/2 – /29 | network 10.0.0.0gateway 10.0.0.1DNS 10.0.0.2future use 10.0.0.3broadcast 10.0.255.255 | 65,531 | /2 – /29 |
| GCP VPC/8 – /29 | network 10.0.0.0gateway 10.0.0.1second-to-last 10.0.255.254broadcast 10.0.255.255 | 65,532 | /8 – /29 |
Swipe sideways to see every column.
Subnet splitter (FLSM and VLSM)
Cut a parent range into equal subnets (FLSM) or place a list of host requirements largest first (VLSM). Leftover space is summarised back into CIDR blocks.
10.0.0.0/16 → 4 subnets · VLSM
| # | Subnet | First host | Last host | Usable | Note |
|---|---|---|---|---|---|
| 1 | 10.0.0.0/23 | 10.0.0.1 | 10.0.1.254 | 510 | needs 500 hosts |
| 2 | 10.0.2.0/24 | 10.0.2.1 | 10.0.2.254 | 254 | needs 200 hosts |
| 3 | 10.0.3.0/26 | 10.0.3.1 | 10.0.3.62 | 62 | needs 50 hosts |
| 4 | 10.0.3.64/27 | 10.0.3.65 | 10.0.3.94 | 30 | needs 20 hosts |
Swipe sideways to see every column.
VLSM reserves the network and broadcast address of each new subnet, two addresses per block.
Multi-range overlap and conflict detector
Check ranges before they collide in VPC peering, VPNs or a merger. Paste several CIDR blocks separated by newlines or commas and every overlap and containment pair is flagged immediately.
| # | Input | Subnet | Version | Status |
|---|---|---|---|---|
| 1 | 10.0.0.0/16 | 10.0.0.0/16 | IPv4 | overlaps 1 |
| 2 | 10.0.1.0/24 | 10.0.1.0/24 | IPv4 | overlaps 1 |
| 3 | 192.0.2.0/24 | 192.0.2.0/24 | IPv4 | clear |
| 4 | 2001:db8::/32 | 2001:db8::/32 | IPv6 | clear |
Swipe sideways to see every column.
1 overlapping pairs
Overlapping pairs
- contains#1 ⊃ #2 · 10.0.1.0 – 10.0.1.255
Two aligned CIDR blocks are always either nested or disjoint. A partial overlap cannot be written in CIDR notation.
Export
Copy or download the result as CSV, a Markdown table or Terraform cidrsubnet() code. Everything is generated in the browser and never uploaded.
Terraform output is available when the splitter has produced subnets.
name,cidr,network,first_host,last_host,usable_hosts subnet-01,10.0.0.0/23,10.0.0.0,10.0.0.1,10.0.1.254,510 subnet-02,10.0.2.0/24,10.0.2.0,10.0.2.1,10.0.2.254,254 subnet-03,10.0.3.0/26,10.0.3.0,10.0.3.1,10.0.3.62,62 subnet-04,10.0.3.64/27,10.0.3.64,10.0.3.65,10.0.3.94,30
How it works
Addresses are computed on BigInt, and each cloud rule is taken from that provider's own documentation.
10.0.0.0/16; the calculator starts from the network address with every host bit cleared.cidrsubnet() code.Frequently asked questions
Why are only 2ⁿ−2 hosts usable?
The lowest address in a range is the network address and the highest is the broadcast address, so both are reserved: a /24 gives 254 usable hosts. The exceptions are /31 (point-to-point, RFC 3021) with 2 and /32 with 1.
Why does AWS reserve five addresses?
AWS reserves the first address (network), the second (VPC router), the third (DNS), the fourth (future use) and the last (broadcast) in every subnet. A /28 therefore leaves 11 of its 16 addresses for instances.
How do Azure and Google Cloud differ?
Azure reserves the first four and the last address, five in total (0 network, 1 default gateway, 2 and 3 for DNS mapping, last broadcast). Google Cloud reserves the first two and the last two, four in total (network, default gateway, second-to-last, broadcast).
Does IPv6 have a broadcast address?
No. IPv6 uses multicast, so no broadcast address is reserved. The all-zero address of every subnet is the Subnet-Router anycast address, so this calculator subtracts one from the address count.
Can two CIDR ranges overlap partially?
No. CIDR blocks are aligned to a power-of-two size, so two blocks either contain one another or are completely separate. The detector therefore reports identical, containing or disjoint pairs and marks the contained block as redundant.
How does Terraform cidrsubnet() work?
`cidrsubnet("10.0.0.0/16", 4, 0)` adds four bits to the /16 to make a /20 and returns the first /20. This tool computes the extra bits and the block number for every split subnet so the code can be pasted straight into a configuration.
Is the range I enter sent anywhere?
No. Everything runs inside the browser; there is no server, API or account. Only your last inputs are kept in this device's localStorage, and clearing site data removes them.
CIDR and VPC design guides
Reserved IPs, VLSM, IPv6 and range conflicts in the order you meet them.
- CIDR notation and subnet masks from the ground upWhat 192.0.2.0/24 actually means: network and broadcast addresses, usable host counts, subnet masks and wildcard masks in one place.
- Designing AWS VPC subnets around five reserved IPsVPC CIDR is /16 to /28, five addresses are reserved in every subnet, and a /28 leaves only 11. Sizing rules, an availability-zone layout and Terraform.
- VLSM: splitting a range by real host requirementsWhy equal-size FLSM wastes space, and how VLSM places the largest requirement first, aligns every block and reports the leftover space.
- IPv6 notation and exact 128-bit arithmeticEight groups, :: compression and RFC 5952, why /64 is the standard subnet, and the Subnet-Router anycast that replaces broadcast.
- Detecting overlapping CIDRs before peering failsWhy overlapping ranges break VPC peering, VPNs and mergers, why two CIDR blocks are always nested or disjoint, and how to check many ranges systematically.