CIDR to IP Range Calculator

Compute network, broadcast, netmask, wildcard, first and last host and address count from CIDR for IPv4 and IPv6, classify the range (private, loopback…), test whether an IP is inside, split networks and convert a range to CIDR.

Workspace

How the result is calculated

The address is converted to a big integer (BigInt) of 32 bits for IPv4 or 128 for IPv6, so network = address AND mask and broadcast = network OR inverted mask. Address count = 2^(host bits). In IPv4 usable hosts = total − 2, with two in a /31 (RFC 3021) and one in a /32. IPv6 is written compressed per RFC 5952 (longest run of zero groups ≥ 2, leftmost, lowercase). Range-to-CIDR takes, at each step, the largest aligned block that fits in the range.

Limits: Type classification uses a built-in table of the best-known reserved ranges, not the full IANA registry. IPv6 shows no broadcast because it does not exist. Splitting is limited to 4096 subnets. The tool does not check that an address is allocated or routable on the Internet.

FAQ

What is the difference between /31 and /32?

/31 is a point-to-point link with two hosts (RFC 3021) and /32 is a single host.

Can I enter a netmask instead of a prefix?

Yes, e.g. 192.168.1.0/255.255.255.0.

Newest tools

Recently added free tools — they run in your browser without uploading your data

All tools →

AES and ChaCha20 keys with correct IV/nonces via Web Crypto, Hex, Base64 and JWK formats, verification and bulk export

Local

Paste discussions (Reddit, Quora, YouTube) to extract pain points, repeated questions, phrases, topic clusters and title ideas

Local

A bookmarklet that analyses any page as your browser sees it after JavaScript: title, description, H1, links, images, Open Graph, JSON-LD and hreflang

Local

Legitimate link-building tactics, outreach message templates, a linkable-asset idea generator and a local opportunity tracker with CSV and JSON export

Local