Skip to tool
JoeLucky

Click ★ on a tool to save it

Tool Categories

What Is My IPIP LookupIP Reputation & Risk CheckerCIDR Subnet CalculatorNEWSPF & DMARC GeneratorNEW
JoeLucky

Practical online tools, all in one place

Privacy PolicyTerms of Service

© 2026 JoeLucky®. All rights reserved.

  1. JoeLucky
  2. /Network & IP
  3. /CIDR Subnet Calculator

CIDR Subnet Calculator

Enter a CIDR to get network, broadcast, usable hosts and masks for IPv4 and IPv6.

Report

SIMILAR NETWORK & IP

View all
SPF & DMARC Generator

Generate and check SPF and DMARC records in your browser, without querying DNS.

Open →
Cloud Storage Cost Calculator (S3, R2, B2)

Compare monthly storage and egress costs on AWS S3, Cloudflare R2 and Backblaze B2.

Open →
IP Lookup

Look up RDAP registry data and reverse DNS for an IPv4/IPv6 address, domain or URL.

Open →

💬 Comments

?

No comments yet. Be the first!

WHAT IS CIDR SUBNET CALCULATOR?

The CIDR Subnet Calculator takes a CIDR (such as 192.168.1.0/24) or "IP + mask" and instantly returns the network address, broadcast address, subnet mask, wildcard mask, first and last usable address, total addresses and usable hosts, with the binary network/host bits. It handles IPv4 and IPv6, /31 (RFC 3021) and /32, and adds subnet splitting, VLSM planning, IP range to the fewest CIDRs, containment and overlap checks, CIDR aggregation, and the reserved-address rules of AWS, Azure and Google Cloud.

How to use?

  1. In "Calculate" enter a CIDR or IP + mask and, if needed, pick cloud rules (AWS, Azure, Google Cloud).
  2. Switch to "Split subnets", enter a new prefix length or the hosts needed per subnet, and copy the list or download the CSV.
  3. Use "VLSM planner" to list the hosts each segment needs and get a largest-first allocation, and "Range to CIDR" to turn a start and end IP into the fewest CIDRs.
  4. Use "Contains / aggregate" to check whether an IP is inside a block, whether two blocks overlap, or to merge several CIDRs.

Notes

  • Example: 192.168.1.77/24 → network 192.168.1.0/24, broadcast 192.168.1.255, mask 255.255.255.0, wildcard 0.0.0.255, usable 192.168.1.1–192.168.1.254 (254 hosts).
  • Formulas: network = IP AND mask; usable hosts = 2^(32−prefix) − 2, with 2 for /31 and 1 for /32; cloud rules only change the usable count and the allowed subnet sizes.
  • Octets must not have leading zeros (010 can be read as octal); IPv6 addresses with a %zone identifier are not supported.
  • Everything is calculated in your browser and the addresses you type are not uploaded.

Frequently asked questions

If I enter 192.168.1.77/24, which network is calculated?

The tool clears the host bits and shows "the actual network is 192.168.1.0/24". Network address = IP address AND subnet mask, so any address inside that block gives the same network as long as the first 24 bits match.

Why do /31 and /32 give 2 and 1 usable hosts instead of 0 and −1?

/32 is a single host address (a host route), so it has 1 usable host. /31 is used for point-to-point links under RFC 3021: both addresses are usable and there is no network or broadcast address, so it has 2. For other prefixes usable hosts = 2^(32 − prefix) − 2.

Which addresses do AWS, Azure and Google Cloud reserve in a subnet?

AWS and Azure reserve 5 addresses per subnet (the first 4 and the last 1), while Google Cloud reserves 4 in a primary IPv4 range (network, default gateway, second-to-last and broadcast). Switching the "Cloud rules" selector subtracts them from the usable count and shows the subnet-size range the platform allows. Rule sources and verification dates appear under the result.

What is the difference between a subnet mask and a wildcard (inverse) mask?

A subnet mask sets network bits to 1 and host bits to 0 (for example 255.255.255.0); a wildcard mask is the opposite (0.0.0.255) and is common in Cisco ACLs and OSPF configuration. The tool shows both, and if you enter a wildcard mask it converts it to a prefix length automatically.

How do I split IPv6 into subnets? What does /64 mean?

IPv6 has no broadcast address and every address in a block can be assigned; each network segment is normally a /64, and the remaining bits are used to divide the space into subnets. For example a /48 holds 65,536 /64 networks. Address counts are shown as powers of 2 because the numbers become unreadably large.

What is VLSM planning and how does the tool allocate?

VLSM (variable-length subnet masks) lets different segments use subnets of different sizes so addresses are not wasted. You list the hosts each segment needs; the tool allocates from largest to smallest, aligns every block to its own size, and tells you which segment does not fit when space runs out.

Why is 010.1.1.1 rejected, and are my addresses uploaded?

Some systems read a number with a leading zero (010) as octal (8), so the same text can mean different addresses in different programs; the tool asks you to write 10.1.1.1 to avoid ambiguity. All calculation happens in your browser and the addresses you type are not uploaded.

Examples
Network address192.168.1.0/24
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Broadcast address192.168.1.255
First usable192.168.1.1
Last usable192.168.1.254
Total addresses256
Usable hosts254
ClassfulC

Binary (network bits / host bits)

11000000.10101000.00000001.00000000

Special-use ranges

  • 192.168.0.0/16Private network (RFC 1918) (RFC 1918)
How it is calculated
  • Network = IP AND mask; broadcast = network + block size − 1.
  • Usable hosts = 2^(32−prefix) − 2; /31 gives 2 (RFC 3021) and /32 gives 1.
  • Cloud rules only change the usable count and the allowed subnet sizes; the address maths is the same.
  • Everything is calculated in your browser; addresses you type are not uploaded.
  • Classful names (A/B/C) are historical; modern networks use CIDR and the class does not decide the mask.