Skip to content
Changelog
new tooldeveloper & web

Subnet Calculator

v1.0

Subnet Calculator works out an IPv4 network from a CIDR block such as 192.168.1.0/24, or from an address and a prefix picked separately.

It shows the network and broadcast addresses, the first and last usable host, the number of usable hosts, the netmask and wildcard mask, the legacy class, and whether the range is private, loopback or another reserved range. Each value has its own copy button. Below that, the address is shown in binary with the network bits highlighted, so the boundary is easy to see.

Give it an address that is not the start of its block, like 172.16.5.130/26, and it reports the network it belongs to. The two special cases are explained when they come up: /31 as a point-to-point link where both addresses are usable, and /32 as a single host.

You can split the block into smaller subnets, either by choosing a new prefix or by asking for a number of subnets. A count that is not a power of two is rounded up, and a line above the table says how many subnets of which size that makes. The table lists each subnet's network, usable range, broadcast address and host count, and the whole table copies as plain text. Very large splits are cut off at a fixed number of rows, with a note saying how many there would be.

The Sample menu loads a home /24, an office /22, an address inside a /26, a /31 link, a single host and a public block. Errors wait until you stop typing, so a half-typed address does not flash a warning and the last result stays on screen. Your settings are remembered on this device, and Share puts the block into a link without sending it anywhere.

All changes