CIDR / Subnet Calculator

Calculate network address, broadcast, host ranges, masks, and address counts for any CIDR block. Runs entirely in your browser.

Network

Accepts IP/prefix (e.g. 10.0.0.5/16) or just an IP (defaults to /32).

How it works

About CIDR / Subnet Calculator

CIDR (Classless Inter-Domain Routing) describes networks as IP/prefix, where the prefix is the number of leading 1-bits in the subnet mask. /24 means 24 network bits and 8 host bits — 256 addresses. Knowing the network address, broadcast address, and usable host range is the first step in any IP planning task: assigning static addresses, sizing VPC/VNet subnets in AWS, Azure, or GCP, writing firewall rules, or debugging why two services cannot reach each other.

Remember that network and broadcast addresses are reserved in normal subnets, so a /24 has 254 usable hosts, not 256. Point-to-point links often use /31 (2 addresses, no broadcast) or /30 (4 addresses, 2 usable). RFC 1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are what most internal networks use — this tool helps you carve them correctly.

Reading CIDR notation

A block such as 192.168.1.0/24 is a network address followed by the number of leading bits that identify the network. The remaining bits are the host portion, so /24 leaves 8 host bits — 254 usable addresses once the network and broadcast addresses are reserved.

The calculator shows the network address, broadcast address, first and last usable host, and the total host count, so you can check a block at a glance instead of counting by hand.

Common mistakes

A host address inside the range is not the same as the network address. Configuring a gateway to 192.168.1.37/24 works at the OS level but the stated network should be the network address; some systems reject the difference.

Overlapping blocks are the usual cause of a routing conflict. Check the broadcast address of each range — two ranges whose broadcast addresses overlap cannot both be valid.

Frequently Asked Questions

How do I calculate CIDR subnets?
Enter a CIDR notation (e.g. 192.168.1.0/24) and the tool calculates the network address, broadcast address, usable host range, total hosts, and subnet mask — for both IPv4 and IPv6.
Can I supernet or subnet a network?
Yes. Given a CIDR block, the tool can show all subnets at a given prefix length, or aggregate multiple CIDR blocks into the smallest possible supernet that contains them all.
Is my data sent to a server?
No. Every tool on jsonversal runs entirely in your browser using the Web Crypto API, File API, and Clipboard API. Nothing is ever uploaded — not even the JSON you paste in.
Do I need an account or API key?
No signup, no email, no API key. All tools are free to use with no signup required.
Can I use these tools offline?
Yes. Once the page loads, all tools work offline. There are no external API calls or CDN dependencies at runtime.
🔒
Your data never leaves your device

All processing happens in your browser. No uploads, no tracking, no servers. Your API keys, configs, and private payloads stay private — 100% client-side.

esc
↑↓ navigate ↵ open esc close