CIDR ↔ Subnet Mask Converter
Convert between CIDR notation like /24 and dotted-decimal subnet masks like 255.255.255.0.
Results
What this tool does
This tool converts CIDR prefixes into subnet masks and subnet masks into CIDR prefixes. It is useful when reading network diagrams, firewall rules, or cloud networking configuration.
When this tool is useful
- Converting /24, /27, or /29 into dotted-decimal subnet masks
- Checking what subnet mask a firewall or router entry corresponds to
- Translating documentation between CIDR and subnet mask formats
Related Tools
Related Articles
What Is CIDR Notation? Explained with Examples
Learn what CIDR notation means, how slash prefixes like /24 and /27 define IP ranges, and how CIDR relates to subnet masks and routing.
CIDR Cheat Sheet for Common Subnet Sizes
Use this CIDR cheat sheet to quickly compare common subnet sizes, masks, block sizes, and usable host counts during subnet planning and troubleshooting.
What Is a Subnet Mask? Explained Clearly
Learn what a subnet mask does, how it separates network and host portions of an IPv4 address, and how it relates to CIDR and usable ranges.
