Type an IPv4 address and a prefix. Read the network, the mask, the range, and the host count.
192.168.1.0/24255.255.255.00.0.0.255192.168.1.255192.168.1.1192.168.1.254254256CIDR writes a network as an address and a prefix length. RFC 4632, published in August 2006, describes Classless Inter-Domain Routing. 192.168.1.0/24 means the first 24 bits are the network and the last 8 bits vary.
This page accepts an IPv4 address and a prefix from 0 to 32. It shows the network, the mask, the wildcard, the broadcast, the first and last host, and the counts. A host address such as 192.168.1.50/24 is brought back to its network.
192.168.1.50/24
network 192.168.1.0 netmask 255.255.255.0 first 192.168.1.1 last 192.168.1.254 usable hosts 254
10.0.0.0/31
first 10.0.0.0 last 10.0.0.1 usable hosts 2
192.168.1.0 255.255.255.0
192.168.1.0/24
For a prefix of 0 to 30, usable hosts are the addresses minus the network and the broadcast. /31 and /32 do not subtract those two: RFC 3021 uses both addresses of a /31, and a /32 is a single host.
IPv6 is not parsed. An address with a colon shows the error, rather than a wrong IPv4 result.
The wildcard is the inverse of the mask. For a /24 it is 0.0.0.255. Some access lists ask for that form instead of the mask.
The share link stores the CIDR text. Anyone who has the link can read that address.
RFC 1519 introduced CIDR in September 1993. RFC 4632, August 2006, made that document historic and is the current description. The old class A, B, and C boundaries are what the prefix length replaced.
RFC 3021, December 2000, says a 31-bit prefix on a point-to-point link may use both addresses. Subtracting a network and a broadcast would leave zero hosts, which is why this page counts 2.