← All Docs

Subnet Planner

Plan an IPv4 address block visually: size subnets by host count, drag devices into them, and get assigned IPs plus a plan you can copy or export to CSV.

Try Subnet Planner →

What Does the Subnet Planner Do?

The Subnet Planner turns one IPv4 block, such as 10.20.0.0/22, into a working address plan. You add subnets by prefix length or by the number of hosts they must hold, and the planner places each one at the first free, correctly aligned position. A proportional bar shows every subnet and every free gap in the block.

You then add hosts (routers, servers, printers, access points) and drag them into subnets. Each host gets the next free usable address, so the plan doubles as an IP assignment sheet. Everything runs in your browser. The plan is kept in memory only and is gone when you leave the page.

How Do I Build a Plan?

  1. Open IP Tools > Subnet Planner from the top menu.
  2. Enter the parent block, for example 10.20.0.0/22, and click Set block. If the address has host bits set, the planner uses the network address and tells you.
  3. Add a subnet: type a name, choose Hosts or Prefix, enter the size, and click Add subnet. Tick Reserve gateway to keep the first usable address for a router.
  4. Click Auto layout to re-pack all subnets largest-first, the way a VLSM design does, when the first-fit order left gaps.
  5. Add hosts one at a time with a role, or paste a list of names into Bulk add.
  6. Drag each host chip from the Unassigned tray into a subnet card. With a keyboard or screen reader, use the Move to menu on the chip instead.
  7. Use Copy plan, Download .txt, or Download .csv to save the result.

How Are Addresses Assigned?

Allocation is deterministic. Inside each subnet, the network and broadcast addresses are skipped, and hosts take the usable addresses in the order they were moved in. If a gateway is reserved, the first usable address goes to the first host with the gateway role, or stays marked as reserved. A /31 treats both addresses as usable, as RFC 3021 allows for point-to-point links, and a /32 holds exactly one host.

When a subnet is full, a drop into it is refused and the planner says so. Moving a host out frees its address, and a host moved back in goes to the end of the order.

Why Does Auto Layout Sort Largest First?

Every subnet must start on a boundary that is a multiple of its own size. Placing the largest subnets first means each smaller one always finds an aligned slot right after the previous one, so the free space ends up in one contiguous run at the end of the block instead of scattered gaps. That is the same rule VLSM design uses. Hosts stay in their subnets when you re-pack, and their addresses follow the new positions.

What Can It Not Do?

The planner is a design aid. It does not configure routers, DHCP servers, or switches, and it does not scan or ping your network. Check the plan against what is already in use before you apply it. It plans IPv4 only; use the IPv6 Planner for IPv6 prefixes.

Use Cases

  • New office or site: split one allocated block into staff, voice, server, and management networks with room to grow.
  • VLAN rollout: size each VLAN by its device count and hand the CSV to whoever configures the switches.
  • Home lab: lay out lab, IoT, and guest networks before touching the router.
  • Teaching: show why subnets align on their own size and how much space each prefix really uses.

Frequently Asked Questions

Does the Subnet Planner save my plan?

No. The plan lives in memory in this browser tab only. Nothing is uploaded or stored, so copy or download it before you leave the page.

How many hosts fit in a subnet?

A subnet with prefix length p has 2 to the power of (32 minus p) addresses. Two of them, the network and broadcast addresses, are not usable, so a /24 holds 254 hosts and a /26 holds 62. A /31 holds 2 and a /32 holds 1.

Why did my new subnet land after a gap?

Subnets must start on a multiple of their own size. A /26 can only start at .0, .64, .128 or .192, so if a smaller subnet already sits at .0, the /26 moves to the next aligned start. Auto layout re-packs largest first to close those gaps.

Can I plan without a mouse?

Yes. Every host chip is focusable and has a Move to menu that lists the tray and every subnet. Drag and drop also works with touch and pen.

Does it support IPv6?

No, this planner works with IPv4 blocks from /8 to /30. The IPv6 Planner covers IPv6 prefix plans such as splitting a /48 into /64 networks.