Field | Value | Copy |
---|---|---|
{{ row.key }} | {{ row.value }} |
Index | Address | Type | Copy |
---|---|---|---|
{{ h.index }} | {{ h.address }} | {{ h.kind }} |
Which | CIDR | Network | Broadcast | Copy |
---|---|---|---|---|
{{ r.which }} | {{ r.cidr }} | {{ r.network }} | {{ r.broadcast || '—' }} | |
No neighbors at this boundary. |
Level | CIDR | Network | Broadcast | Usable | Copy |
---|---|---|---|---|---|
{{ u.level }} | {{ u.cidr }} | {{ u.network }} | {{ u.broadcast || '—' }} | {{ u.usable }} | |
Increase supernet levels to aggregate upward. |
Field | Decimal | Binary | Copy |
---|---|---|---|
{{ row.key }} | {{ row.dec }} | {{ row.bin }} |
Classless Inter‑Domain Routing (CIDR) describes how an Internet Protocol version 4 network is partitioned into routable blocks by a prefix length that controls aggregation and host capacity. Network engineers, developers, and students use a CIDR calculator online to visualize boundaries, mask semantics, and address roles without memorizing tables. The concept replaces rigid classful allocations with flexible prefixes, improving utilization and summarization across routers, firewalls, and monitoring systems.
This tool accepts dot‑decimal IP address text and a prefix length or mask, then computes the network address, wildcard, broadcast status, first and last hosts, and the total and usable address counts. It also identifies class labels and special‑purpose ranges, lists host samples, and derives adjacent networks and supernets. A binary view presents zero‑padded octets for instruction, while optional charts and exports support documentation, provisioning, and automation.
For example, entering 10.0.5.17 with a moderate prefix shows the base network, the contiguous usable span, and whether a broadcast address applies; you can then copy the key values into tickets or configurations. The output clarifies how many hosts fit and where the next aligned block begins. Always confirm ranges before deployment in production networks; overlapping or mis‑sized subnets can disrupt routing and services.
IPv4 addressing models each endpoint as four octets and uses a prefix length p to indicate how many leading bits define the network portion. Given an address and p, deterministic bitwise operations yield the network boundary, any broadcast, and the host range. The total capacity equals a power of two, and interpretation changes at p=31 and p=32 where broadcast is not used and all addresses are usable. Class labels and special‑purpose ranges provide human‑readable context but do not alter the arithmetic.
Threshold Band | Meaning | Broadcast Present? | Usable Hosts |
---|---|---|---|
/32 | Single‑address host route | No | 1 |
/31 | Point‑to‑point link | No | 2 |
/30–/24 | Small subnets for access/LAN | Yes | 2(32−p)−2 |
/23–/16 | Aggregated campus or region | Yes | 2(32−p)−2 |
/15–/8 | Large aggregates | Yes | 2(32−p)−2 |
/7–/0 | Macro routing blocks | Yes | 2(32−p)−2 |
Use /31 for efficient point‑to‑point links and /32 for host routes; all broader prefixes include a broadcast concept and reserve the first and last addresses.
Parameter | Meaning | Unit/Datatype | Typical Range | Notes |
---|---|---|---|---|
IP address | IPv4 endpoint in dot‑decimal | Text | a.b.c.d (0–255 each) | Accepts “IPv4/prefix” or “IP mask”. |
Prefix length | Number of network bits | Integer | 0–32 | Validated and applied from input when provided. |
Host index | 0‑based offset into usable hosts | Integer | 0–(usable−1) | Special cases for /31 and /32. |
Show first N hosts | Limit sample listing | “all” or integer | 1–2048 or all | Invalid values default to 32; capped at 2048. |
Supernet levels | Aggregate upward by levels | Integer | 0–8 | Displays level, CIDR, and usable count. |
Given IP 192.168.1.10 with p=24:
All calculations execute in your browser; this tool makes no network requests, and copies/exports are generated locally.
Follow these steps to calculate subnet boundaries, sample hosts, and neighbors quickly.
Example: 172.16.4.5/20 ⇒ network 172.16.0.0, broadcast 172.16.15.255, usable 4094 hosts; previous block 172.15.240.0/20, next block 172.16.16.0/20.
You now have accurate boundaries, capacity, and context to plan addressing or verify configurations.
Enter IPv4 as a.b.c.d, optionally with “/prefix”, or as “IP mask” using a contiguous dotted mask. The prefix is validated and the mask is converted to a prefix when contiguous.
/31 yields two usable host addresses without broadcast; /32 represents a single‑address route. The UI labels first/last hosts accordingly and omits broadcast where not applicable.
A class label (A–E) based on the first octet provides legacy context; it does not affect CIDR math or capacity.
No. All parsing and calculations occur locally, and copies/exports are generated client‑side; the tool does not perform network requests.
Yes, once the page is loaded. Computation is self‑contained; if optional UI or charting assets are unavailable, results still compute and display without the capacity chart.
Use “Show first N hosts” to limit or choose “All” to enumerate the usable span (capped), then copy or download CSV; JSON includes inputs, summary, neighbors, supernets, and host samples.
It flags special‑purpose allocations such as RFC1918 private space, RFC6598 shared space, loopback, link‑local, test networks, multicast, and reserved ranges.
Confirm the address is four octets (0–255), ensure the prefix is an integer 0–32, or if supplying a mask, ensure it is contiguous so it converts cleanly to a prefix.