Simple online tools for developers, networking, text and conversions.

Network Tools

Network Mask Calculator

Convert an IPv4 CIDR prefix into its subnet mask.

Tool

Use this Network Mask Calculator to convert CIDR notation like /24 into a dotted decimal subnet mask such as 255.255.255.0. It is useful for subnetting practice, network configuration, and quick IPv4 reference checks.

About this tool

Use this Network Mask Calculator to convert CIDR notation like /24 into a dotted decimal subnet mask such as 255.255.255.0. It is useful for subnetting practice, network configuration, and quick IPv4 reference checks.

Use network mask calculator when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

Learn more

Why use this tool

How to use

  1. Enter a CIDR prefix like /24 or just 24.
  2. Run the tool to convert the prefix.
  3. Review the dotted decimal subnet mask.
  4. Use the result in network configuration or planning.

Examples

Example

Input

24

Output

CIDR: /24
Subnet Mask: 255.255.255.0

Converts a common /24 subnet into dotted decimal form.

Example

Input

/30

Output

CIDR: /30
Subnet Mask: 255.255.255.252

Useful for small subnets and point-to-point configurations.

Common errors

Users enter a full IP/CIDR instead of only the prefix.

Fix: Enter just the prefix like 24 or /24 for this tool.

The prefix is outside the valid range.

Fix: Use a number between 0 and 32.

Users expect IPv6 masks.

Fix: This tool is only for IPv4 subnet masks.

FAQ

What does this tool convert?

It converts an IPv4 CIDR prefix into a dotted decimal subnet mask.

Can I enter 24 instead of /24?

Yes. Both 24 and /24 are accepted.

Does this tool support IPv6?

No. It is only for IPv4 subnet masks.

Why is dotted decimal mask format still useful?

Many devices, documents, and labs still use dotted decimal subnet masks.

What is the subnet mask for /24?

It is 255.255.255.0.

Use cases

Related tools