| {{ col.label }} | |||||||
|---|---|---|---|---|---|---|---|
| {{ row.hosts }} | {{ row.cidr }} | {{ row.network }} | {{ row.first }} | {{ row.last }} | {{ row.broadcast }} | {{ row.notes }} | |
| auto | auto | auto | auto | auto |
{{ csvText }}
IPv4 subnets are contiguous address ranges that group devices and control reachability. A clear plan shows how many addresses each segment needs and how those segments fit inside a chosen parent range.
You provide a network address and a prefix, then list the host counts you intend to serve, and the planner proposes aligned ranges with the first and last usable addresses so you can assign space without overlaps.
For example, starting from 10.0.0.0 with prefix 24 and asking for 50 hosts returns a 10.0.0.0 slash 26 block that offers 62 usable addresses and leaves the rest available for later groups.
Valid formats confirm structure only, not reachability or entitlement, so double check routes and avoid mixing sensitive notes with production secrets. Planning largest segments first often reduces gaps and keeps utilisation tidy.
The planner models IPv4 address space as 32 discrete bits and summarises segments by prefix length. It reports the network address, broadcast address, first and last usable address, and the count of usable host addresses inside each proposed block.
From a requested host count, it calculates the smallest power‑of‑two block that can contain those hosts and aligns that block within the parent range. Special handling applies to two cases where usable host addressing differs from the typical network and broadcast pattern.
Results reflect exact binary boundaries. Crossing a boundary increases the block size to the next power of two, so asking for only one more host can double the space consumed, which is expected behaviour for aligned ranges.
Comparisons are meaningful within the same parent range. The utilisation figure is the sum of usable addresses in planned blocks divided by the usable addresses in the parent range, rounded to the nearest whole percent.
| Symbol | Meaning | Unit/Datatype | Source |
|---|---|---|---|
| Requested host count | integer | Input | |
| Minimum total addresses for block | integer | Derived | |
| Bits to cover M | integer | Derived | |
| Prefix length | /32 | Derived | |
| Block size | addresses | Derived |
| Field | Type | Min | Max | Step/Pattern | Error Text |
|---|---|---|---|---|---|
| Network address | IPv4 dotted quad | 0.0.0.0 | 255.255.255.255 | four octets 0–255 | Invalid address |
| Prefix | integer | 8 | 31 | select list | Invalid prefix |
| Hosts | integer | 1 | space‑limited | step 1 | Not enough space for that subnet |
| Notes | string | — | — | trimmed | — |
| Input | Accepted Families | Output | Encoding/Precision | Rounding |
|---|---|---|---|---|
| IPv4 network + prefix | dotted decimal, /8 to /31 | Table view | exact addresses | n/a |
| Hosts + notes | integers, plain text | CSV export | visible columns only | n/a |
| — | — | JSON export | visible keys only | n/a |
Units, precision, and rounding.
Networking and storage behaviour.
Diagnostics and determinism.
Assumptions and limitations.
Edge cases and error sources.
Privacy and compliance.
No data is transmitted or stored server‑side. Avoid including sensitive production identifiers in notes.
Subnet planning from host counts and a parent range.
No. Calculations and exports are created locally on your device. Nothing is sent to a server.
Clipboard and downloads use device APIs.Alignment is exact to binary boundaries. The smallest power‑of‑two block that fits your request is chosen for each allocation.
IPv4 dotted‑decimal network address and a prefix from 8 to 31, plus integer host counts and optional plain‑text notes.
Yes. A /31 allocation yields two usable addresses and is handled explicitly by the planner.
Compute 2^(32−p) total addresses. For p below 31, usable addresses equal total minus two for network and broadcast.
Yes. Once loaded, it performs all work locally and does not require access to remote services.
All usable addresses in the parent range have been assigned to planned blocks. Remove or resize blocks to free space.
Yes. Exports include only the columns that are currently visible, in the same order.
No specific licence or pricing terms are included here. Consult the hosting site for terms.