Network Mask Calculator

Convert subnet masks between decimal and CIDR notation and find the number of available hosts. Free online calculator.

About this tool

Convert subnet masks between decimal and CIDR and calculate host counts per prefix — free and instant.

With Network Mask Calculator you get fast, easy-to-read results that are useful for both professional and everyday use.

Decimal mask vs CIDR

The CIDR prefix (/24, /26…) shows how many network bits are fixed. Use this table for quick conversion.

TermMeaning
/24255.255.255.0 — 254 usable IPv4 hosts.
/25255.255.255.128 — 126 usable hosts.
/26255.255.255.192 — 62 usable hosts.
/30255.255.255.252 — 2 hosts (point-to-point links).

How to use

  1. Enter the mask or CIDR prefix in the field provided.
  2. Click the action button to run the Network Mask Calculator.
  3. Review the result shown on screen and copy or share it as needed.

Use cases

  • Quickly convert between decimal mask and CIDR.
  • Find out how many hosts a mask supports.
  • Support network addressing planning.

Frequently asked questions

Is the Network Mask Calculator free?

Yes. The XploreNetHub Network Mask Calculator is 100% free, with no sign-up or installation required.

Do I need to install anything to use the Network Mask Calculator?

No. The tool runs entirely in your browser and works on any device with an internet connection.

How does the Network Mask Calculator work?

Just enter the mask or CIDR prefix and run it; the Network Mask Calculator converts subnet masks between decimal format and CIDR notation and shows the result instantly.

Is my data stored?

We do not store the data you submit. Processing happens only to produce the result of your request.

Can I use the Network Mask Calculator on mobile?

Yes. The interface is responsive and works on phones, tablets and desktops.