UtilityToolsLab

© 2026 UtilityToolsLab. Built and maintained by the UtilityToolsLab Team.

About·Changelog·Privacy Policy·Terms of Service·Contact
HomeNetwork & IP ToolsSubnet Calculator

Related Tools

IP Address Validator

Subnet Calculator — IPv4, IPv6 & VLSM

Calculate network, broadcast, host range and mask for any IPv4 or IPv6 subnet, see the bits, split a block into equal parts and plan VLSM by host count.

You Might Also Like

All Network & IP Tools

IP Address Validator

Validate any IPv4 or IPv6 address and see its class, scope, binary, hex and 32-bit forms. Detects private, loopback, multicast and documentation ranges.

URL Encode

Encode and decode URLs using encodeURI, encodeURIComponent, or raw percent-encoding. Includes common character reference table.

Regex Tester

Test regular expressions live with highlighted matches, capture groups, and a plain-English breakdown of every token. Includes replace preview and flag toggles.

Live HTML Preview

Preview HTML, CSS and JavaScript live in your browser: see the page as you type, test phone and tablet widths, read the console and download one file.

Subnetting by hand means binary, and one slipped bit puts a server on the wrong network. Type an address with its prefix, and this gives the network, broadcast, usable range and both masks, then shows the bits so you can see why.

It opens on 192.168.10.57/26, a host in the network 192.168.10.0/26, with 62 usable hosts from 192.168.10.1 to 192.168.10.62 and a broadcast of 192.168.10.63.

How to Use the Calculator and VLSM Planner

  1. Type 192.168.1.10/24, 192.168.1.10 255.255.255.0 or an IPv6 address such as 2001:db8::1/48, or drag the prefix slider.
  2. Read the results, each with its own copy button. Network bits are orange in the binary view.
  3. Use Split to cut an IPv4 block into equal subnets.
  4. In the planner, enter the block and one group per line, such as Sales 60, and copy the plan as CSV.

The planner is the part worth knowing about. Equal subnets waste space when one team has 60 devices and a router link has 2, so VLSM gives each group the smallest block that fits, placing the largest first so every block starts on its own boundary. The sample needs 60, 28, 12, 6 and 2 hosts from a /24, and gets a /26, /27, /28, /29 and /31, using 122 of the 256 addresses.

The Method: Masks and Host Counts

A prefix says how many leading bits name the network. The network address is the IP with the host bits cleared, the broadcast is the same with them all set, and a /n holds 232−naddresses. Two of those are normally reserved, so a /26 has 64 addresses and 62 usable hosts. The wildcard mask is the mask inverted, as used in Cisco access lists. These results were compared with Python’s ipaddress library on 30,000 random IPv4 and 30,000 IPv6 networks, plus 3,000 splits and 3,000 VLSM plans.

Edge Cases: /31, /32 and IPv6

A /31 has no broadcast: both addresses are hosts on a point-to-point link (RFC 3021). A /32 is a single address. A mask must have contiguous ones, so 255.255.0.255 is refused. Leading zeros such as 010.0.0.1 are rejected too, because some systems read them as octal. The class shown is historical, since routing has ignored classes since CIDR. In the planner, a list that does not fit names the group that ran out of room, for example “doesn’t fit… Use a larger block.” Splitting lists the first 256 subnets and counts the rest. Splitting and planning work on IPv4 only.

  • Address192.168.10.57
  • Network192.168.10.0/26
  • Broadcast192.168.10.63
  • Host range192.168.10.1 – 192.168.10.62
  • Usable hosts62
  • Total addresses64
  • Subnet mask255.255.255.192
  • Wildcard mask0.0.0.63
  • ClassC
  • TypePrivate (RFC 1918)

The same thing in bits (network bits in orange)

Address

11000000.10101000.00001010.00111001

Mask

11111111.11111111.11111111.11000000

Network

11000000.10101000.00001010.00000000

Broadcast

11000000.10101000.00001010.00111111

  1. 192.168.10.0/28 (192.168.10.1 – 192.168.10.14)
  2. 192.168.10.16/28 (192.168.10.17 – 192.168.10.30)
  3. 192.168.10.32/28 (192.168.10.33 – 192.168.10.46)
  4. 192.168.10.48/28 (192.168.10.49 – 192.168.10.62)

Plan subnets by host count (VLSM)

Each group gets the smallest block that fits, largest first, so nothing overlaps.

NameNeedsSubnetHost rangeUsable
Sales60192.168.10.0/26192.168.10.1 – 192.168.10.6262
Engineering28192.168.10.64/27192.168.10.65 – 192.168.10.9430
Guest Wi-Fi12192.168.10.96/28192.168.10.97 – 192.168.10.11014
Servers6192.168.10.112/29192.168.10.113 – 192.168.10.1186
Router link2192.168.10.120/31192.168.10.120 – 192.168.10.1212

122 of 256 addresses used; free from 192.168.10.122.