Convert between prefix length and subnet mask, with host counts.
/24 = 255.255.255.0 — 254 usable hosts
Usable hosts are two fewer than the total, because the first address is the network and the last is the broadcast.
Subnet mask
255.255.255.0 — 1s mark the network
Wildcard mask
0.0.0.255 — the exact inverse, which is what ACLs and OSPF take
What this cannot tell you
Take this with you
Subnet Mask to CIDR on RunTheTests — free browser-based netmath tools, no sign-up.