CIDR to Subnet Mask Calculator
Enter the CIDR prefix length to get its subnet mask.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
CIDR notation (Classless Inter-Domain Routing) expresses a subnet mask as a slash followed by the number of leading 1-bits — /24 means the first 24 bits of the 32-bit address are the network portion. This converts a prefix length directly into the dotted-decimal subnet mask everyone actually configures on routers and servers (/24 = 255.255.255.0), plus the wildcard mask (its bitwise inverse, used in Cisco ACLs) and the count of usable host addresses.
CIDR replaced the old rigid Class A/B/C system in the 1990s to make IP address allocation far more efficient, and converting between prefix length and subnet mask is a daily task for network administrators configuring VLANs, firewalls, and routing tables, and a core topic in every networking certification syllabus.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)