Skip to main content

CIDR Calculator

Enter any IPv4 CIDR notation (e.g. 192.168.1.0/24) to instantly calculate network address, broadcast address, host range, subnet mask, wildcard mask, and usable host count. All computation runs in your browser.

✓ 60K+ developers trust DevPlaybook ✓ Runs 100% in your browser ✓ Supports /0 to /32

Frequently Asked Questions

What is CIDR notation?▼

CIDR (Classless Inter-Domain Routing) notation represents an IP address and its associated network prefix length. For example, 192.168.1.0/24 means the first 24 bits are the network portion, giving 256 total addresses with 254 usable hosts.

How do I calculate the number of hosts in a subnet?▼

The number of total addresses is 2^(32-prefix). For a /24, that's 2^8 = 256 addresses. Subtract 2 for the network address and broadcast address to get 254 usable hosts. A /30 gives 4 total, 2 usable — ideal for point-to-point links.

What is a wildcard mask?▼

A wildcard mask is the inverse of the subnet mask. It's used in access control lists (ACLs) on Cisco routers. For a /24 subnet (mask 255.255.255.0), the wildcard is 0.0.0.255. A 1 bit means 'don't care', a 0 bit means 'must match'.

What is the difference between /30 and /31?▼

A /30 has 4 addresses (2 usable hosts + network + broadcast) and is the classic choice for point-to-point links. A /31 has 2 addresses — no broadcast — and is specified in RFC 3021 for point-to-point links to save address space. A /32 is a host route (single address).

What are private IP address ranges?▼

RFC 1918 defines three private ranges: 10.0.0.0/8 (16.7M addresses), 172.16.0.0/12 (1M addresses), and 192.168.0.0/16 (65K addresses). These are not routed on the internet and are used for internal networks.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →