← All text tools

Subnet Mask Cheat Sheet

A complete table of CIDR prefixes from /1 to /32 with subnet mask, wildcard mask, number of addresses and usable hosts, with click to copy rows.

  • Free
  • No sign-up
  • Works on any device

About Subnet Mask Cheat Sheet

When you plan a network you keep needing the same few numbers: what mask belongs to /27, how many hosts fit in a /22, which wildcard goes with it. This cheat sheet lists every IPv4 prefix from /1 to /32 with its subnet mask, wildcard mask, total addresses, usable hosts and classful size, in one table you can filter. The prefixes used most often are highlighted, and clicking a row copies it. A /24, for example, has mask 255.255.255.0, wildcard 0.0.0.255 and 254 usable hosts.

How to use Subnet Mask Cheat Sheet

  1. Scan the table or type a prefix or mask in the filter box.
  2. Look at the highlighted rows for the most common prefixes.
  3. Click a row to copy its mask, wildcard and host counts.

Why use this tool?

Also known as

Frequently asked questions

Why are two addresses subtracted from the host count?

The first address of a subnet names the network and the last one is the broadcast address, so neither can be given to a host. That leaves the total minus two.

How many hosts does a /31 or a /32 hold?

A /31 has two addresses and RFC 3021 allows both to be used on a point-to-point link. A /32 is a single host address, often used for loopbacks.

What does the class column mean?

It refers to the old classful sizes, where A was /8, B was /16 and C was /24. Today networks are classless, so the column only shows how a prefix relates to those sizes.

Is Subnet Mask Cheat Sheet free?

Yes. Subnet Mask Cheat Sheet on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools