opyebCidrPlan
OPYEB · serverless static tool

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.

IPv4 /16
Example ranges

Summary

CIDR10.0.0.0/16
Network address10.0.0.0
Broadcast address10.0.255.255
First usable host10.0.0.1
Last usable host10.0.255.254
Total addresses65,536
Usable hosts65,534
Subnet mask255.255.0.0
Wildcard mask0.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.

CloudReserved addressesUsableAllowed prefix
Standard (RFC)/0 – /32network 10.0.0.0broadcast 10.0.255.25565,534/0 – /32
AWS VPC/16 – /28network 10.0.0.0router 10.0.0.1DNS 10.0.0.2future use 10.0.0.3broadcast 10.0.255.25565,531/16 – /28
Azure VNet/2 – /29network 10.0.0.0gateway 10.0.0.1DNS 10.0.0.2future use 10.0.0.3broadcast 10.0.255.25565,531/2 – /29
GCP VPC/8 – /29network 10.0.0.0gateway 10.0.0.1second-to-last 10.0.255.254broadcast 10.0.255.25565,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.

Splitting mode

10.0.0.0/16 → 4 subnets · VLSM

#SubnetFirst hostLast hostUsableNote
110.0.0.0/2310.0.0.110.0.1.254510needs 500 hosts
210.0.2.0/2410.0.2.110.0.2.254254needs 200 hosts
310.0.3.0/2610.0.3.110.0.3.6262needs 50 hosts
410.0.3.64/2710.0.3.6510.0.3.9430needs 20 hosts

Swipe sideways to see every column.

Leftover space: 10.0.3.96/2710.0.3.128/2510.0.4.0/2210.0.8.0/2110.0.16.0/2010.0.32.0/1910.0.64.0/1810.0.128.0/17

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.

#InputSubnetVersionStatus
110.0.0.0/1610.0.0.0/16IPv4overlaps 1
210.0.1.0/2410.0.1.0/24IPv4overlaps 1
3192.0.2.0/24192.0.2.0/24IPv4clear
42001:db8::/322001:db8::/32IPv6clear

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.

Enter a rangeType a CIDR such as 10.0.0.0/16; the calculator starts from the network address with every host bit cleared.
Apply reservationsSubtract 2 standard addresses, 5 on AWS and Azure, 4 on Google Cloud to see what is really assignable.
Split and checkFLSM splits by count, VLSM by host requirement, and several ranges are checked for containment at once.
ExportTake the result as CSV, Markdown or Terraform 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.