Free · No Login · No Signup Required

Free IP Subnet
Calculator.

Calculate network addresses, broadcast, host ranges, wildcard masks, and more — for both IPv4 and IPv6. Instantly.

IPv4Supported
IPv6Supported
15+Output Fields
0Ads

Enter IP Address

Enter an IPv4 address with a CIDR prefix or subnet mask.

Try:
Why NetmaskCalculator

Every feature you need.
Nothing you don't.

Built for network engineers, developers, and students who need fast, accurate subnet calculations without the noise.

IPv4 & IPv6

Full support for both IPv4 subnet calculations and IPv6 prefix operations. Switch instantly between modes.

Binary Visualizer

See every address in binary — network bits highlighted in blue, host bits in gray. Understand subnetting visually.

Shareable URLs

Every calculation updates the URL. Share a link with your team or bookmark a specific subnet for later.

15+ Output Fields

Network, broadcast, host range, subnet mask, wildcard, hex, integer, PTR record, IPv4-mapped IPv6, and more.

Subnet Splitter

Instantly see all subnets if you split the current network by one bit. Perfect for network planning.

100% Free

No account, no paywall, no rate limits. All calculations run in your browser — your data never leaves your device.

Quick Reference

IPv4 CIDR Chart.

The most common prefix lengths and their host counts at a glance. See the full CIDR chart for all /1–/32 values.

CIDRSubnet MaskWildcard MaskTotal AddressesUsable HostsNotes
/8255.0.0.00.255.255.25516,777,21616,777,214Class A
/16255.255.0.00.0.255.25565,53665,534Class B
/24255.255.255.00.0.0.255256254Class C — most common
/25255.255.255.1280.0.0.127128126Half /24
/26255.255.255.1920.0.0.636462Quarter /24
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614Common in cloud VPCs
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342Point-to-point links
/31255.255.255.2540.0.0.122RFC 3021 — P2P only
/32255.255.255.2550.0.0.011Host route
Learn

What is a subnet mask?

A subnet mask is a 32-bit number that divides an IP address into anetwork portion (which identifies the network) and a host portion(which identifies the individual device).

Written in dotted-decimal notation, common masks look like255.255.255.0 (for a /24 network) or255.255.0.0 (for a /16 network).

CIDR notation (Classless Inter-Domain Routing) expresses the same information more compactly — 192.168.1.0/24 means the first 24 bits are the network part.

The wildcard mask is the bitwise inverse of the subnet mask. Used in Cisco ACLs and OSPF configurations to specify which bits to "care about."

Try an Example →

Quick Glossary

Network Address
First address in a subnet. Identifies the network itself — never assigned to a host.
Broadcast Address
Last address in a subnet. Packets sent here reach all hosts on the network.
Wildcard Mask
Bitwise NOT of subnet mask. Used in Cisco ACLs and OSPF to match address ranges.
VLSM
Variable Length Subnet Masking — using different-sized subnets within the same network to save address space.
PTR Record
Reverse DNS lookup record. Maps an IP address back to a hostname, stored in in-addr.arpa.
About This Tool

The Free Netmask Calculator Built for Network Engineers.

Our netmask calculator is a free, browser-based tool designed to help network engineers, developers, students, and IT administrators instantly compute all key properties of any IPv4 or IPv6 subnet. Whether you need to determine a network address, find the broadcast address, calculate usable host ranges, or convert between CIDR notation and subnet mask formats, this subnet mask calculator does it all in a single click — with no login, no ads, and no rate limits.

What Is a Netmask and Why Does It Matter?

A netmask (also called a subnet mask or network mask) is a 32-bit binary mask used to divide an IP address into its network and host portions. In IPv4, it is typically written in dotted-decimal notation — for example, 255.255.255.0 — or in CIDR notation as /24. The netmask tells routers and devices which part of an IP address identifies the network segment and which part identifies the individual host. Without a proper netmask, IP routing, subnetting, and network segmentation would be impossible.

Understanding netmasks is fundamental to network design. When you configure a server, a cloud VPC, a firewall rule, or a router interface, you almost always need to specify a subnet mask or CIDR prefix. OurIP netmask calculator removes the guesswork, giving you every value you need in milliseconds.

How to Use the Subnet Mask Calculator

Using this netmask calculator online is straightforward. Enter any IPv4 address in the IP Address field — for example, 192.168.1.0. Then select a CIDR prefix from the dropdown (e.g. /24) or type the subnet mask directly (e.g. 255.255.255.0). Both inputs are synchronised automatically. Click Calculate (or press Enter) and the tool instantly computes:

  • Network Address — the base address of the subnet
  • Broadcast Address — the last address in the subnet
  • Usable Host Range — the first and last assignable host IPs
  • Subnet Mask & Wildcard Mask — in dotted-decimal format
  • Total & Usable Host Count — exactly how many devices fit in the subnet
  • Binary Representation — shows network vs host bits visually
  • Hex, Integer, PTR Record, IPv4-Mapped IPv6, 6to4 Prefix — for advanced use

You can also paste a CIDR address directly into the IP field (e.g. 10.0.0.0/8) and the tool parses both fields automatically. Every result has a copy-to-clipboard button for instant use in configuration files, documentation, or firewall rules.

CIDR Notation Explained

CIDR notation (Classless Inter-Domain Routing) is a compact way to express an IP address and its network prefix length in a single string — for example, 192.168.0.0/16. The number after the slash represents how many bits of the 32-bit address are the network portion. CIDR replaced the old Class A/B/C system in 1993, allowing much more efficient allocation of IP address space. Oursubnet mask to CIDR calculator converts between both representations automatically.

IPv6 Calculator Support

The tool also functions as a full IPv6 calculator. Switch to the IPv6 tab, enter any IPv6 address and prefix length, and get the expanded/compressed form, network prefix, address type (Global Unicast, Link-Local, Unique Local, Multicast, etc.), total address count, and the ip6.arpa reverse DNS zone. Both compressed (2001:db8::/32) and full (2001:0db8:0000:0000:0000:0000:0000:0000) formats are accepted.

Subnet Splitter & CIDR Chart

Beyond single-subnet calculations, this subnet netmask calculator includes a built-in subnet splitter that shows all sub-subnets if you divide the current block by one prefix bit. This is ideal for VLSM (Variable Length Subnet Masking) network planning. We also offer a dedicatedCIDR chart page listing every prefix from /1 to /32 with subnet mask, wildcard mask, total addresses, and usable host count — a handy reference for any network engineer.

Shareable URLs & Privacy

Every calculation is reflected in the page URL (e.g. ?ip=192.168.1.0&cidr=24), making it easy to share a specific subnet with teammates or bookmark frequently used networks. All calculations run entirely in your browser using JavaScript — no data is ever sent to a server, and we do not store or log any IP addresses you enter.

FAQ

Frequently Asked Questions.

Common questions about netmask calculators, subnet masks, CIDR notation, and IP networking.

Start calculating in seconds.

No signup. No cost. Just fast, accurate subnet math.