CIDR ↔ Netmask
Convert between a /prefix and a dotted netmask, either direction.
Resulttinycalc.net
/n = n leading 1-bits, e.g. /24 = 255.255.255.0
How it works
A CIDR prefix counts the leading one-bits of the netmask: /24 means 24 ones, i.e. 255.255.255.0. The remaining bits address hosts, so a /24 holds 2⁸ − 2 = 254 usable addresses. Type either form and get the other, plus the wildcard mask used in ACLs.
Related calculators
IPv4 SubnetFull subnet breakdown from an IP and CIDR prefix: network, broadcast, host range, mask.Is IP in CIDR RangeCheck whether an IPv4 address falls inside a CIDR block.MAC Address FormatterReformat any MAC address into colon, dash, Cisco-dot or plain style.Data-Rate ConverterConvert between bps, Kbps, Mbps, Gbps and bytes-per-second rates.File Transfer TimeHow long moving a file takes over any link speed.Bandwidth-Delay ProductThe amount of data in flight on a link — sizes TCP windows correctly.