Free tool

VLSM subnet planner

Updated

Enter the block you have and how many hosts each subnet needs. The planner sizes every subnet, places them largest first on clean boundaries, and shows what's left. It runs in your browser.

Subnets you need

Count every address you'll assign, the gateway included. Paste rows from a spreadsheet (name, hosts, VLAN ID) into any box to fill the list.

NameHostsVLAN ID optionalRemove

Turn the plan into a diagram

"Draw these as VLANs" opens the plan in NetworkSketch with one VLAN area per subnet, each holding its subnet, gateway and VLAN ID. Drop devices in and the network check flags any IP outside its subnet. Check an existing list with the IP plan checker, or a single subnet with the subnet calculator.

Try it, no signup

How the plan is built

The same steps you'd do on paper, done the same way every time.

  1. Size each subnet. The smallest prefix whose usable addresses cover the host count: 200 hosts needs 254 usable, a /24; 100 hosts a /25 (126); 20 hosts a /27 (30).
  2. Sort largest first. Subnets of the same size keep the order you typed them in.
  3. Place them from the start of the block. Each subnet starts where the previous one ended. Because the sizes only get smaller, every start lands on a boundary of its own size, so nothing has to be skipped.
  4. Report what's left. The unused space is listed as the largest aligned blocks it splits into, ready for the next subnet.

If the subnets don't fit, the planner says how many addresses you're short and the smallest block that would hold them. An address block typed with host bits set, like 10.0.1.0/22, is moved to its boundary (10.0.0.0/22) with a warning, because that's the block a router would use.

Questions

What is VLSM?

Variable-length subnet masking: dividing one address block into subnets of different sizes, so a 200-host user VLAN gets a /24 while a point-to-point link gets a /31, instead of giving every subnet the same mask.

Why are the subnets placed largest first?

A subnet has to start on a multiple of its own size. Placing the largest first means every later, smaller subnet lands on a boundary it can use, so the plan packs with no gaps and the free space left over is one contiguous range.

Does the host count include the gateway?

Yes. Count every address you will assign in the subnet, the router or firewall interface included. The planner takes the smallest subnet whose usable addresses cover that number. The gateway column shows the first usable address, the most common convention.

How are 1-host and 2-host needs handled?

1 host gets a /32, the usual size for a loopback or router ID. 2 hosts get a /31, which RFC 3021 allows on point-to-point links: both addresses are usable and there is no broadcast. If your equipment doesn't support /31, turn the option off to get a /30 (two usable addresses plus network and broadcast).

Is anything I type sent anywhere?

No. The planner runs on this page in your browser, and the page has no analytics or tracking. Your plan is kept in the part of the link after the # so you can share it, and browsers never send that part to the server.