📐 IPv4/IPv6 CIDR Calculator

Calculate the network range and usable IPs from CIDR notation.

How to use

  1. Enter CIDR notation (e.g. 192.168.1.0/24).
  2. Network range info is calculated as you type.
  3. Both IPv4 and IPv6 are supported.

🎯 Use Cases

Example

Input
192.168.1.0/24
Output
Network address: 192.168.1.0
Broadcast address: 192.168.1.255
Subnet mask: 255.255.255.0
Wildcard mask: 0.0.0.255
Usable IPs: 192.168.1.1 – 192.168.1.254
Total addresses: 256

A /24 block holds 256 addresses; excluding the network and broadcast addresses, 192.168.1.1–192.168.1.254 (254 hosts) are assignable to devices.

Reading CIDR notation

CIDR packs a network's start address and prefix length (subnet) into one notation.

ItemDetails
CIDR192.168.1.0/24 — address plus prefix bit count
Network addressFirst address of the range — not assigned to hosts
BroadcastLast address — /31 and /32 handle this differently
Usable hosts2^(32−prefix)−2 — /24 gives 254
Subnet maskDotted notation — /24 = 255.255.255.0

FAQ

Does it support IPv6?
Yes. Both IPv4 and IPv6 CIDR notation are supported — a colon (:) in the input is automatically detected as IPv6.
Is the IP I enter sent to a server?
No. All calculations run inside your browser using BigInt arithmetic.
Are special prefixes like /31 and /32 supported?
Yes. Special ranges like /31 and /32, which have no or only one usable host, are calculated correctly.
Are /32 and /31 special?
Yes — /32 is a single host (firewall rules), /31 is point-to-point links with no broadcast.
What are the private ranges?
10.0.0.0/8 · 172.16.0.0/12 · 192.168.0.0/16 — internal ranges not routed on the internet.

📐 Learn more: CIDR Notation and How to Calculate a Subnet Mask

Convert CIDR notation like /24 into a subnet mask

More Network Tools

📡
My IP Address
Check your current IP and location
🔤
Punycode Converter
Convert IDN domains ↔ Punycode (xn--)
🔀
IPv4 to IPv6
Convert IPv4 to IPv4-mapped IPv6
🕸️
Domain Extractor
Extract domain names from text/URLs
🚪
Batch URL Opener
Open multiple URLs in new tabs at once
🛰️
DNS Lookup
Look up A, MX, TXT & other DNS records
🔁
Domain to IP
Resolve a domain to IPv4/IPv6
📮
Email Verifier
Check format & mail server (MX) existence
📋
HTTP Headers
Inspect server response headers
🛡️
Security Headers Checker
Audit key security headers
📇
Whois Lookup
Look up domain/IP registration (RDAP)
📍
IP Geolocation
Look up region info for an IP/domain
🖼️
OGP Checker
Preview social share cards
📑
Heading Extractor
Check TITLE & h1–h6 structure
🏷️
Title & Meta Extractor
Extract TITLE, DESCRIPTION & ROBOTS