Toolzy

Subnet Mask Converter

Convert between dotted subnet mask, CIDR prefix length and wildcard mask.

CIDR prefix/24
Subnet mask255.255.255.0
Wildcard mask0.0.0.255

Pick an input format and get the matching CIDR prefix, dotted subnet mask and wildcard mask.

How to use

  1. Choose whether your value is a prefix, mask or wildcard.
  2. Type the value, e.g. 24 or 255.255.255.0.
  3. Read all three equivalent forms.

Frequently asked questions

What is a contiguous mask?
A valid subnet mask has all its 1 bits on the left with no gaps, like 255.255.240.0. A value like 255.0.255.0 is not a valid mask.
How do prefix and mask relate?
The prefix is simply the count of leading 1 bits in the mask: /24 means 24 ones, which is 255.255.255.0.

Related tools