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 see its network. Sign in to a free account to unlock the full breakdown: mask, usable range, wildcard and host count.

Key features

Instant calculation

Immediate results, no waiting. The network preview is free; the full breakdown (broadcast, first/last IP, host count) unlocks with a free account.

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.

IP classification

Classifies the address into one of 11 categories as a badge: public, private (RFC 1918), CGNAT, loopback, link-local, multicast, documentation, benchmarking, broadcast, reserved or this-network.

Free, account included

Network preview shown without an account. Full breakdown (ranges, hosts, wildcard, classification) unlocked with a free account.

Why use this calculator?

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

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

Two ranges, two purposes. The usable range (first usable · last usable) is what you assign to hosts. The complete range (reserved included) reports first, last and total addresses including the network and broadcast addresses - the range you actually need for firewall rules and ACLs, where every address in the block counts.

RangeFirstLastTotalUse
Usable192.168.1.1192.168.1.254254Host assignment
Complete (reserved included)192.168.1.0192.168.1.255256Firewall / ACL

Masks

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

Classification

The tool tags the address with a badge showing which of 11 categories it belongs to: public, private (RFC 1918), CGNAT (RFC 6598), loopback, link-local (APIPA), multicast, documentation, benchmarking, broadcast, reserved or this-network.


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: the network bits. CIDR is more compact. 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 to define which bits must match (0) or can vary (1).


Q: Why can't I use the network and broadcast addresses?

A: The network address (first in the block) identifies the network itself. The broadcast address (last) sends to all hosts. They cannot be assigned to machines.


Q: How many hosts in a /24?

A: A /24 contains 256 addresses (2^8). Minus the network and broadcast, 254 usable addresses remain for hosts.


Q: What is a /31 and when to use it?

A: A /31 (2 addresses, no broadcast) is used for point-to-point links between routers per RFC 3021. Verify your equipment supports it.


Q: Can I use private addresses on the Internet?

A: No. The ranges 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are reserved for internal networks. They require NAT to access the Internet.


Complementary tools

ToolPurpose
IPv6 Subnet CalculatorCalculate IPv6 subnets, prefixes and reverse DNS
Whois IPIdentify the owner of an IP
Reverse DNSFind the hostname of an IP
Check if an IP is blacklistedSee whether an IP is listed on DNS blacklists

Useful resources