LiveFor cloud & network engineers

CIDR & Subnet Planner

Enter an address space and the subnets you need. The planner sizes and packs them with no overlaps, allows for Azure’s and AWS’s reserved addresses, and exports CSV or Terraform.

Runs in your browser. Your data never leaves this device.
~/apps/cidr-subnet-plannerruns in your browser · nothing uploaded
65,536 addresses · 10.20.0.0 – 10.20.255.255
Platform
Azure reserves 5 IPs per subnet (network, gateway, 2× DNS, broadcast). Smallest subnet /29.
Subnets you need
hosts
hosts
hosts
hosts
0.7% of the address space allocated · 65,056 addresses free for growth
SubnetCIDRUsable rangeUsableNeed
snet-app10.20.0.0/2410.20.0.4 – 10.20.0.254251200
snet-data10.20.1.0/2510.20.1.4 – 10.20.1.12612360
AzureBastionSubnet10.20.1.128/2610.20.1.132 – 10.20.1.1905950
GatewaySubnet10.20.1.192/2710.20.1.196 – 10.20.1.2222720
CSV
name,cidr,first_usable,last_usable,usable_hosts
snet-app,10.20.0.0/24,10.20.0.4,10.20.0.254,251
snet-data,10.20.1.0/25,10.20.1.4,10.20.1.126,123
AzureBastionSubnet,10.20.1.128/26,10.20.1.132,10.20.1.190,59
GatewaySubnet,10.20.1.192/27,10.20.1.196,10.20.1.222,27
Terraform (azurerm)
resource "azurerm_subnet" "snet_app" {
  name                 = "snet-app"
  resource_group_name  = azurerm_resource_group.main.name
  virtual_network_name = azurerm_virtual_network.main.name
  address_prefixes     = ["10.20.0.0/24"]
}

resource "azurerm_subnet" "snet_data" {
  name                 = "snet-data"
  resource_group_name  = azurerm_resource_group.main.name
  virtual_network_name = azurerm_virtual_network.main.name
  address_prefixes     = ["10.20.1.0/25"]
}

resource "azurerm_subnet" "AzureBastionSubnet" {
  name                 = "AzureBastionSubnet"
  resource_group_name  = azurerm_resource_group.main.name
  virtual_network_name = azurerm_virtual_network.main.name
  address_prefixes     = ["10.20.1.128/26"]
}

resource "azurerm_subnet" "GatewaySubnet" {
  name                 = "GatewaySubnet"
  resource_group_name  = azurerm_resource_group.main.name
  virtual_network_name = azurerm_virtual_network.main.name
  address_prefixes     = ["10.20.1.192/27"]
}

What it does

  • Cloud-aware sizingAllows for the 5 addresses Azure and AWS reserve in every subnet, and each platform’s minimum subnet size.
  • No overlapsPacks the largest subnets first, on correct boundaries, leaving free space in one block.
  • Subnet calculatorNetwork, broadcast, usable range, subnet mask and wildcard mask (for ACLs) for any address.
  • Export and shareCopy or download CSV or Terraform, or copy a link to the exact plan for a teammate.

How to use it

  1. Enter your VNet or VPC address space

    For example 10.20.0.0/16.

  2. Pick the platform

    Azure, AWS or generic. This changes reserved addresses and minimum sizes.

  3. List the subnets and how many hosts each needs

    Include growth: resizing a subnet in use is painful.

  4. Copy, download or share the plan

    CSV for documentation, Terraform for deployment, or a link for review.

Questions people ask

How many IP addresses does Azure reserve in a subnet?

Five: the network address, the default gateway, two addresses for Azure DNS, and the broadcast address. A /29 therefore gives you 3 usable addresses.

How many IP addresses does AWS reserve in a subnet?

Five: the network address, the VPC router, the DNS server, one reserved for future use, and the broadcast address. The smallest subnet AWS allows is a /28, which gives 11 usable addresses.

What is a wildcard mask?

The inverse of the subnet mask, used in Cisco ACLs and OSPF. For a /24 (255.255.255.0) the wildcard mask is 0.0.0.255.

Why does the planner allocate the biggest subnets first?

Larger blocks must start on larger boundaries. Placing them first avoids gaps and keeps the remaining space in one contiguous range for future subnets.

Last updated 4 Dec 2026 · More in Networking & DNS

More Networking & DNS tools

See all →
Your product here. Reach IT engineers and architects who use these tools.Advertise →