CIDR Subnet Calculator

Calculate an IPv4 network, mask, wildcard, address range and host count from an address and prefix length 0–32. Inputs containing host bits are normalized to their network; the tool performs no network scan.

Only dotted-decimal IPv4 CIDR is supported, up to 64 UTF-16 units; leading zeros are normalized as decimal. RFC 3021 /31 has two host addresses and /32 has one, without subnet broadcasts. Counts describe geometric capacity, not availability after reservations, policy or existing allocations. IPv6 is unsupported.

Input

Result

Ordinary subnet: the first and last addresses identify the network and broadcast, and are excluded from the host count.

Network prefix
192.168.1.128/26
Subnet mask
255.255.255.192
Wildcard mask
0.0.0.63
Broadcast address
192.168.1.191
First host address
192.168.1.129
Last host address
192.168.1.190
Host count under subnet rules
62
Total addresses
64
RFC 3021

CIDR Subnet Calculator

Calculate an IPv4 network, mask, wildcard, address range and host count from an address and prefix length 0–32.

Usage guide