Skip to main content

IPv4 Netmask Calculator

Calculate network, broadcast and host range in one click

Need to plan a subnet or verify a configuration? Enter an IPv4 address and instantly get the mask, usable range, wildcard and host count.

Instant calculation

Immediate results: network, broadcast, first/last IP, host count. No waiting.

CIDR and decimal

Displays mask in CIDR notation (/24) and decimal (255.255.255.0). Both common formats.

Wildcard mask

Automatic wildcard calculation (e.g., 0.0.0.255) used in Cisco ACLs and some firewalls.

Private ranges

Identifies private addresses (RFC 1918) and special ranges (loopback, link-local, CGNAT).

100% free

No registration required. Calculate as many subnets as needed without limits.

Why use this calculator?

Calculate in one click the network, mask, broadcast and usable address range of an IPv4.

Use cases:

  • ACLs and firewalls: Get network and wildcard for your rules
  • VLAN planning: Size subnets based on host count
  • Config verification: Check a configuration provided by an operator
  • Documentation: Properly document an addressing plan

What the tool calculates

Key addresses

ElementDescriptionExample (/24)
NetworkFirst address of the block192.168.1.0
BroadcastLast address (broadcast)192.168.1.255
First usableNetwork + 1192.168.1.1
Last usableBroadcast - 1192.168.1.254

Masks

  • CIDR: /24
  • Decimal: 255.255.255.0
  • Wildcard: 0.0.0.255

Common prefix table

CIDRMaskAddressesHostsTypical use
/32255.255.255.25511Single host
/31255.255.255.25422Point-to-point link
/30255.255.255.25242Router link
/29255.255.255.24886Small network
/28255.255.255.2401614Small office
/27255.255.255.2243230SMB
/26255.255.255.1926462Department
/25255.255.255.128128126Floor
/24255.255.255.0256254Standard network
/16255.255.0.065,53665,534Large network

Special address ranges

Private addresses (RFC 1918)

10.0.0.0/8       → 16 million addresses
172.16.0.0/12    → 1 million addresses
192.168.0.0/16   → 65,000 addresses

Other reserved ranges

RangeUsage
127.0.0.0/8Loopback (localhost)
169.254.0.0/16Link-local (APIPA)
100.64.0.0/10CGNAT operators
224.0.0.0/4Multicast

FAQ - Frequently asked questions

Q: What's the difference between mask and CIDR?

A: The decimal mask (255.255.255.0) and CIDR prefix (/24) represent the same thing. A /24 = 255.255.255.0 = 256 addresses.


Q: What is the wildcard mask?

A: The wildcard is the inverse of the mask. For 255.255.255.0, the wildcard is 0.0.0.255. It's used in Cisco ACLs.


Q: How many hosts in a /24?

A: A /24 contains 256 addresses. Minus the network and broadcast, 254 usable addresses remain.


Complementary tools

ToolPurpose
Whois IPIdentify the owner of an IP
Reverse DNSFind the hostname of an IP
My IP AddressDisplay your public IP

Useful resources