Convert between CIDR prefix and subnet mask
Switch in either direction: a CIDR prefix (/24) to a dotted-decimal
mask (255.255.255.0), or a mask back to its prefix. The tool also shows the
wildcard mask and the number of usable hosts the mask allows.
Mask-to-prefix conversion validates that the mask is contiguous, so invalid masks are flagged rather than silently accepted. Everything runs in your browser.