100% Client-Side Privacy: Zero files or data uploaded.
100% Private Browser Execution

CIDR & IPv4 Subnet Mask Calculator

100% FreeNo Sign-UpNo Upload — Runs In Your Browser

Calculate CIDR subnet masks, wildcard masks, usable host IP ranges, and broadcast addresses client-side.

Quick Answer

A CIDR subnet calculator works out the network address, broadcast address, subnet mask and usable host range for any IP range written in CIDR notation, such as 192.168.1.0/24. Enter an IP address and prefix length and this free subnet calculator shows the full breakdown instantly, including private RFC 1918 ranges.

  • Network address
  • Broadcast address
  • Subnet mask
  • Usable host range

IP & CIDR Prefix

Subnet Mask & Host Specifications

Netmask 255.255.255.0
Wildcard Mask 0.0.0.255
Network IP Address 192.168.1.0
Broadcast IP Address 192.168.1.255
Usable Host IP Range 192.168.1.1 - 192.168.1.254
Total Usable Hosts 254

Private IP Address Ranges (RFC 1918)

Three IP ranges are reserved for private networks — they are not routable on the public internet. Tap any range to copy it.

What Are Private IP Addresses?

A private IP address is an IP address reserved for use inside private networks — your home Wi-Fi, office LAN, or corporate intranet. Defined by RFC 1918, these three private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are not routable on the public internet, which means millions of networks can reuse the same addresses without conflict. Your router uses NAT (Network Address Translation) to map these private IPs to your single public IP when accessing the internet.

Private vs Public IP: What's the Difference?

A public IP address is globally unique and assigned by your ISP — it's how the internet sees you. A private IP address only works within your local network. This is why your laptop might be 192.168.1.5 at home and also 192.168.1.5 at a café — the addresses are reused safely because NAT keeps them separated. Use the subnet calculator above to break any of these ranges into smaller subnets for VLANs or department networks.

How to Use CIDR & IPv4 Subnet Mask Calculator

Follow these 3 simple steps to process your files securely in seconds.

1

Enter IP Address

Input starting IPv4 address.

2

Adjust CIDR Slider

Select prefix length from /1 to /32.

3

View Network Specs

See usable host range, broadcast address, and netmask.

Why Choose Toolenix Client-Side Tools?

Engineered for US & UK professionals who value maximum data privacy, speed, and zero cloud footprints.

Bitwise Precision

Pure client-side bitwise calculation engine.

Usable Host Count

Displays exact allocatable host IP count.

Private Network Safe

Safe for internal RFC1918 private subnets.

Developer & Utility Guide

In-Depth Guide to CIDR & IPv4 Subnet Mask Calculator

CIDR notation is how networks describe a block of addresses in one short string: 192.168.1.0/24 means "the first 24 bits are the network, the rest are hosts". This calculator turns that notation into the full picture — network address, broadcast address, subnet mask, wildcard mask and the usable host range — so you can plan subnets, write firewall rules and check whether two addresses sit on the same network without doing binary maths by hand.

How the numbers work

An IPv4 address is 32 bits. The prefix length says how many of those bits belong to the network; the rest belong to hosts. A /24 leaves 8 host bits, so 2⁸ = 256 addresses in total. Two of those are reserved — the network address itself and the broadcast address — leaving 254 usable hosts. In general, usable hosts = 2^(32 − n) − 2, where n is the prefix length. The subnet mask is the same idea written as an address: /24 is 255.255.255.0, /16 is 255.255.0.0.

The two exceptions to the minus-two rule

  • /31 point-to-point links (RFC 3021): a /31 has only 2 addresses and no broadcast address — both are usable, one per end of the link. Subtracting 2 would wrongly give zero hosts.
  • /32 single-host routes: a /32 is one address, used for a single host or loopback. It represents 1 usable host, with no network or broadcast address to reserve.

Private ranges and practical use

The three RFC 1918 private ranges — 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 — are reserved for internal networks and are not routable on the public internet, which is why your home router can hand out 192.168.x.x addresses freely and translate them to one public address with NAT. When you split a network, pick the smallest prefix that fits the hosts you need plus room to grow: a /25 (126 hosts) for a department of 100 leaves almost no headroom, while a /24 for five printers wastes addresses you may need later. Everything here is computed in your browser, so internal subnet plans never leave your machine.

Frequently Asked Questions

Everything you need to know about using this free online tool.

What is a CIDR notation?
CIDR (Classless Inter-Domain Routing) denotes the number of bits allocated to the network prefix (e.g., /24 equals netmask 255.255.255.0).
How many usable hosts in a /24 subnet?
A /24 subnet provides 256 total IP addresses, minus 2 reserved addresses (network and broadcast), leaving 254 usable host addresses.
Is this safe for internal enterprise subnets?
Yes. Toolenix computes everything in browser memory with zero network requests.
What are the three private IP address ranges?
The three RFC 1918 private IP ranges are 10.0.0.0/8 (16.7M addresses), 172.16.0.0/12 (1M addresses), and 192.168.0.0/16 (65,536 addresses). They are reserved for private networks and not routable on the public internet.
Why can't private IP addresses be used on the internet?
Private IP ranges are reserved by RFC 1918 for internal networks only. Internet routers are configured to drop traffic from these ranges, which is why NAT (Network Address Translation) is used to map private IPs to a public IP for internet access.
How many usable hosts are in a /31 or /32 subnet?
The usual minus-two rule does not apply. A /31 point-to-point link (RFC 3021) has 2 usable addresses and no broadcast address, and a /32 is a single host route with 1 usable address. Subtracting 2 would wrongly give zero hosts for a /31.