Subnet Mask Converter
Convert IPv4 subnet masks and CIDR prefixes in either direction.
IP & Network Tools
Subnet Mask Converter
Convert a dotted IPv4 subnet mask to CIDR notation, or convert a CIDR prefix back to its mask.
Calculation runs locally in your browser. No address is uploaded.
About the Subnet Mask Converter
Subnet Mask Converter is a focused network utility for administrators, developers, support teams and people troubleshooting an internet connection. Convert IPv4 subnet masks and CIDR prefixes in either direction.
The calculation runs locally in your browser, so the address is not uploaded.
This is a calculation or classification of supplied addresses, not a live check of reachability, ownership or physical location.
Enter a contiguous dotted mask such as 255.255.255.0, a slash prefix such as /24 or a bare whole prefix 24. A dotted value is interpreted as a subnet mask, not a wildcard; 0.0.0.255 is not accepted as a /24 wildcard input.
The wildcard output is the bitwise inverse of the subnet mask. Addresses per subnet counts 2^(32-prefix), not necessarily usable or available hosts. A noncontiguous dotted pattern is rejected; this does not validate any device's actual network configuration.
Key features
- Dotted mask to CIDR
- CIDR to subnet mask
- Wildcard and binary masks
How to use
- 1Enter a dotted mask or CIDR prefix.
- 2Select Convert.
- 3Copy the equivalent mask, prefix or wildcard value.
Examples
255.255.255.0/24Only contiguous IPv4 masks are valid subnet masks.
Frequently asked questions
- Is this tool free?
- Yes. It requires no account, payment or software installation.
- Does this check whether an address is reachable?
- No. It calculates or classifies the supplied value locally. A valid address or range does not prove that a device exists, responds, or belongs to anyone.
- Does this tool expose private network data?
- No. This calculator operates entirely on the values in your browser.
- Can I use it on mobile?
- Yes. Inputs, tables and results adapt to phones, tablets and desktop browsers.
- Can I enter a wildcard mask?
- There is no separate wildcard-input mode. Supply the subnet mask or prefix; the corresponding wildcard is an output value.
Continue your workflow
Open a related tool to prepare your files or refine the finished result.
- IP & Network ToolsIPv4 Subnet Calculator
Calculate a subnet mask, network, broadcast and usable host range from an IPv4 address and prefix.
Open tool - IP & Network ToolsCIDR Calculator
Expand IPv4 CIDR notation into its network range, masks and address capacity.
Open tool - IP & Network ToolsIP Range Calculator
Count the inclusive IPv4 addresses between a starting and ending address.
Open tool
