386+ Tools Comprehensive Tools for Webmasters, Developers & Site Optimization

Network Mask Calculator - Convert Between CIDR, Subnet, and Wildcard Masks

Network Mask Calculator

Convert between CIDR notation, subnet masks, and wildcard masks with binary and hex representations.

What is a Network Mask?

A network mask (or subnet mask) is used to divide an IP address into network and host portions. It determines which part of an IP address refers to the network and which part refers to individual hosts on that network.

Types of Network Masks:

  • CIDR Notation: Slash notation indicating number of network bits (e.g., /24)
  • Subnet Mask: Dotted decimal notation (e.g., 255.255.255.0)
  • Wildcard Mask: Inverse of subnet mask, used in ACLs (e.g., 0.0.0.255)

When to Use Each Format:

  • CIDR: Modern routing, IP address planning, most network documentation
  • Subnet Mask: Windows networking, older Cisco IOS, network configuration
  • Wildcard Mask: Cisco ACLs, OSPF area configuration, route filtering

How to Use the Network Mask Calculator

Step 1: Select input type (CIDR, Subnet Mask, or Wildcard Mask)
Step 2: Enter the value (e.g., 24, 255.255.255.0, or 0.0.0.255)
Step 3: Click "Calculate" to see all mask representations
Step 4: Use "Copy Results" to save the mask information

Example Calculation:

Input: /24 (or 255.255.255.0 or 0.0.0.255)

Results:
CIDR Notation: /24
Subnet Mask: 255.255.255.0
Wildcard Mask: 0.0.0.255
Binary Netmask: 11111111.11111111.11111111.00000000
Binary Wildcard: 00000000.00000000.00000000.11111111
Hexadecimal: 0xffffff00
Total IPs: 256
Usable Hosts: 254
    

Common Network Masks:

CIDR Subnet Mask Wildcard Hosts
/30 255.255.255.252 0.0.0.3 2
/29 255.255.255.248 0.0.0.7 6
/28 255.255.255.240 0.0.0.15 14
/27 255.255.255.224 0.0.0.31 30
/26 255.255.255.192 0.0.0.63 62
/24 255.255.255.0 0.0.0.255 254
/16 255.255.0.0 0.0.255.255 65,534
/8 255.0.0.0 0.255.255.255 16,777,214

Related Network Tools