CIDR to Subnet Mask Converter

Turn a prefix length, like /24, into the subnet mask, the wildcard mask and the number of hosts.

1 Fill in the box

2 Your answer

Your answer shows here as you type.

How to use the CIDR to Subnet Mask Converter

  1. Type the prefix length, the number after the slash.
  2. Read the subnet mask in the first row.

Frequently asked questions

What is the number after the slash?

It is how many leading bits of an address are the network part. In /24, the first 24 bits are the network and the last 8 are for hosts.

Why are two addresses not usable?

The first address is the network address and the last is the broadcast address. A /31 link uses both ends, and a /32 is a single address.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.