| 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. | |||||
| Prefix | Mask | Wildcard | Total addresses | Usable hosts | Host bits | Copy |
|---|---|---|---|---|---|---|
| /{{ row.prefix }} | {{ row.mask }} | {{ row.wildcard }} | {{ row.total }} | {{ row.usable }} | {{ row.hostBits }} |
| Field | Decimal | Binary | Copy |
|---|---|---|---|
| {{ row.key }} | {{ row.dec }} | {{ row.bin }} |
IPv4 addresses are numbered locations that identify devices on a network and group them into subnets for routing and access control. A clear view of the network address, the usable host range, and the broadcast behavior helps you size blocks, avoid collisions, and plan growth. Many readers search for an IPv4 subnet calculator with CIDR prefix support when they need a quick, reliable answer without guesswork.
Enter an address and a prefix so the subnet can be derived, then read the network boundary, usable hosts, and any special range label. You can look up one host by its index, inspect binary representations for teaching or audits, compare adjacent networks to place the next block correctly, and open the CIDR tab to compare nearby prefixes with mask, wildcard, and host-bit counts.
A typical example is a small office where 192.168.1.10 with a prefix of 24 yields a network boundary at 192.168.1.0 and a usable range ending at 192.168.1.254 so printers and servers can be assigned predictable addresses. Results reflect point to point behavior for a prefix of 31 and single address behavior for a prefix of 32 so edge cases remain accurate.
For consistent results, keep inputs in dotted decimal, confirm the intended prefix, and prefer measured host counts over mental math. When moving from a lab to production, repeat the calculation and record the network and broadcast addresses in change notes.
The quantities of interest are the IPv4 address (four octets), the Classless Inter‑Domain Routing (CIDR) prefix length, the derived subnet mask, and the resulting addresses for network, broadcast, first host, and last host. The computation treats the address as a 32 bit unsigned value, producing a snapshot of one subnet rather than a time series.
Total capacity is computed from the prefix, then mapped to usable host count with special handling for very small subnets. Reading these values tells you how many interfaces can be numbered and where the usable range starts and ends. A class label is derived from the first octet and a special range label is applied when the address falls within private, shared, loopback, link local, multicast, reserved, or test allocations exposed by the code. Mask and wildcard values are mirrored in hexadecimal, and the computed network and host bit counts surface how much of the 32-bit space remains for addressing.
Interpretation follows common subnetting practice. For prefix lengths of 31 the two addresses are both usable and no broadcast is reported. For prefix lengths of 32 the single address is the only usable value. For larger blocks, the first and last usable hosts exclude the network and broadcast endpoints.
Comparisons are valid for a fixed prefix and address family. The class label is descriptive and should not be used to infer routing policy. Large ranges list only a sample of hosts to keep tables responsive.
| Symbol | Meaning | Unit/Datatype | Source |
|---|---|---|---|
| ip | IPv4 address | dotted string | Input |
| p | CIDR prefix length | integer | Input |
| m | Subnet mask | dotted string | Derived |
| w | Wildcard mask | dotted string | Derived |
| n | Network address | dotted string | Derived |
| b | Broadcast address | dotted string | Derived |
| Ntotal | Total addresses | count | Derived |
| Nusable | Usable hosts | count | Derived |
| Field | Type | Min | Max | Step/Pattern | Error Text | Placeholder |
|---|---|---|---|---|---|---|
| IP address | text | — | — | IPv4 or IPv4 with prefix or “IP mask” pair | “Invalid IPv4 address.” or “Invalid CIDR prefix.” | 192.168.1.10 or 192.168.1.0/24 |
| Prefix | select | 0 | 32 | integer | “Invalid CIDR prefix.” | /p with dotted mask |
| Host index | number | 0 | usable − 1 (or 1 for 31) | integer | Out‑of‑range returns empty | e.g. 5 |
| Show first N hosts | select | 16 | 2048 | choices plus “All” | — | All or 16 to 2048 |
| Supernet levels | number | 0 | 8 | integer | — | — |
Special range labels applied by the logic include RFC1918 Private (10/8, 172.16/12, 192.168/16), RFC6598 Shared (100.64/10), Loopback (127/8), Link‑local (169.254/16), TEST‑NET‑1/2/3, Benchmark (198.18/15), IETF Protocol Assignments (192.0.0/24), Multicast (224/4), Reserved (240/4), and This network (0/8).
| Class | Lower | Upper | Interpretation | Action Cue |
|---|---|---|---|---|
| A | 0 | 127 | Historical unicast label | Large legacy blocks |
| B | 128 | 191 | Historical unicast label | Medium legacy blocks |
| C | 192 | 223 | Historical unicast label | Common small blocks |
| D | 224 | 239 | Multicast | Not for hosts |
| E | 240 | 255 | Reserved | Not for hosts |
| Input | Accepted Families | Output | Encoding/Precision | Rounding |
|---|---|---|---|---|
| IPv4 address, prefix, options | IPv4 dotted decimal | Tables, CSV copy/download, JSON view/download | Exact integers, dotted strings | Not applicable |
Networking and storage behavior: all calculations run on the page and copy or download actions operate locally.
Performance: computations are constant time per address, while host listing is linear in the requested count and capped by the selector to remain responsive.
Diagnostics and determinism: identical inputs produce identical results; errors surface as concise messages above the results panel.
Security considerations: inputs are parsed as plain text and rendered into tables and preformatted blocks; no secrets or credentials are required.
IPv4 subnet analysis produces the network boundary, usable range, and optional neighbors and supernets.
Example. Input 10.0.5.12 with prefix 20 returns network 10.0.0.0 and last host 10.0.15.254 to cover 4094 usable addresses in that block.
No. Calculations run locally and copy or download actions originate from the page.
No server requests are made.Counts follow exact integer arithmetic. Prefix 31 yields two usable addresses. Prefix 32 yields one usable address. Larger blocks exclude network and broadcast.
Use IPv4, IPv4 with a CIDR prefix, or an address followed by a dotted mask separated by space.
Yes for small blocks. For large blocks the “All” option may be too heavy; select a capped size like 256 or 2048 to stay responsive.
Set the prefix to 24 and open “Neighbors” to read the next network and its broadcast address. Place the following block at the next network.
If the prefix is 31 or 32, the usual network and broadcast rules change. Both addresses are usable at 31 and a single address exists at 32.
No. The logic and display target IPv4 only.
Yes. Private, shared, loopback, link local, test, multicast, reserved, and related blocks are labeled when the input falls within them.