Subnet Calculator
Enter an IP with its prefix and instantly get the network, mask, wildcard, host range, broadcast, class and type.
Subdivide into subnets (VLSM)
Hosts each subnet needs, within 192.168.10.0/26.
$ calc 192.168.10.0/26 Network192.168.10.0 Mask255.255.255.192 (/26) Wildcard0.0.0.63 Range192.168.10.1 — 192.168.10.62 Broadcast192.168.10.63 Hosts62 usable (64 total) ClassC TypePrivate (RFC 1918) $ ▋
Binary representation
network bits host bits
VLSM plan
Runs locally in your browser · no sign-up · nothing leaves your browser.
How it works
The calculator takes an IPv4 address and a prefix (for example 192.168.1.0/26) and breaks the subnet down: dotted-decimal mask, wildcard, network address, usable host range, broadcast, historical class and network type (private, public or special).
It performs the same operation a router does: it ANDs the mask with the address to get the network, inverts the mask for the wildcard, and uses the host bits to count addresses: 2^(32−prefix) in total, minus network and broadcast for usable hosts (with the /31 and /32 exceptions).
Example: how many devices fit in 192.168.1.0/26?
- A /26 prefix leaves 32 − 26 = 6 bits for hosts.
2^6 = 64total addresses in the block (.0 through .63).- Subtract network (.0) and broadcast (.63): 62 usable hosts, .1 through .62.