Batch Subnet Calculator
Calculate details for multiple prefixes.
Batch Subnet Calculator: inputs and results
Enter an IP address, CIDR prefix, or range. Then check its first and last address below.
Calculated Boundaries & ParametersReady
Key Capabilities
- •100% Client-Side: Zero telemetry or server latency.
- •RFC Compliant: Exact 32-bit and 128-bit integer precision.
- •Quick Copy: Instant access to CIDR, mask, and range bounds.
- •Cross-Platform: Works on desktop, tablet, and mobile browsers.
Related Diagnostics, Generators & UtilitiesAll Tools
IPv4 Reverse DNS Name Generator
Generate address-level reverse lookup names.
Reverse DNS Zone Planner
Identify applicable reverse delegation boundaries.
Bounded IP Address List Generator
Enumerate a selected, limited address range.
Random Address Sampler
Sample addresses within supplied ranges.
IP List Deduplicator
Remove repeated addresses.
IP Address Sorter
Sort addresses numerically.
How Batch Subnet Calculator Works?
This tool works by running the full subnet calculation on every line of a pasted prefix list and returning 1 result row per line.
Paste a prefix list
Enter up to thousands of prefixes, 1 per line, from a spreadsheet or export.
Parse each line
Each line is read as CIDR or address plus mask. Invalid lines are flagged and skipped.
Calculate each prefix
Every row receives network, broadcast, host range, mask, and host counts.
Export the table
The results download as CSV or JSON for spreadsheets and scripts.
Batch Subnet Calculator Formula
The formula applies Network = IP AND Mask, Broadcast = Network OR Wildcard, and Usable = 2^(32 − p) − 2 to each line independently.
Per-line network
N_i = IP_i AND Mask_iRow i.
Per-line broadcast
B_i = N_i OR Wildcard_iRow i.
Total addresses
Σ 2^(32 − p_i)Sum across the batch.
Invalid lines
count(parse failures)Reported, not calculated.
Worked example: 3-line batch
10.12.40.7/21 → 10.12.40.0 – 10.12.47.255 (2,046 hosts) 172.18.200.1/26 → 172.18.200.0 – 172.18.200.63 (62 hosts) 192.168.300.0/24 → invalid (octet above 255)
Batch Subnet Calculator Conversion Table
The table processes a batch of 9 prefixes and returns the main subnet values for each line.
| Input | Network | Broadcast | Mask | First Host | Last Host | Usable |
|---|---|---|---|---|---|---|
| 10.12.40.7/21 | 10.12.40.0 | 10.12.47.255 | 255.255.248.0 | 10.12.40.1 | 10.12.47.254 | 2,046 |
| 172.18.200.1/26 | 172.18.200.0 | 172.18.200.63 | 255.255.255.192 | 172.18.200.1 | 172.18.200.62 | 62 |
| 192.168.77.9/24 | 192.168.77.0 | 192.168.77.255 | 255.255.255.0 | 192.168.77.1 | 192.168.77.254 | 254 |
| 10.200.3.3/30 | 10.200.3.0 | 10.200.3.3 | 255.255.255.252 | 10.200.3.1 | 10.200.3.2 | 2 |
| 100.70.1.1/12 | 100.64.0.0 | 100.79.255.255 | 255.240.0.0 | 100.64.0.1 | 100.79.255.254 | 1,048,574 |
| 198.51.100.130/25 | 198.51.100.128 | 198.51.100.255 | 255.255.255.128 | 198.51.100.129 | 198.51.100.254 | 126 |
| 203.0.113.45/28 | 203.0.113.32 | 203.0.113.47 | 255.255.255.240 | 203.0.113.33 | 203.0.113.46 | 14 |
| 10.0.0.0/31 | 10.0.0.0 | 10.0.0.1 | 255.255.255.254 | 10.0.0.0 | 10.0.0.1 | 2 |
| 192.0.2.99/32 | 192.0.2.99 | 192.0.2.99 | 255.255.255.255 | 192.0.2.99 | 192.0.2.99 | 1 |
What is Batch Subnet Calculator?
The Batch Subnet Calculator is a tool that calculates subnet details for many prefixes at once and returns the results as a single table.
Audits, migrations, and documentation projects involve hundreds of subnets. Running a single-subnet calculator for each one is slow and error-prone. The batch calculator handles the full list in 1 pass and flags malformed lines.
Every row uses the same rules as the single IPv4 Subnet Calculator, including RFC 3021 handling of /31 links and host-route handling of /32 entries.
What are the uses of Batch Subnet Calculator?
There are 4 main uses of the Batch Subnet Calculator, including IPAM imports, audits, and documentation.
Preparing IPAM imports
IPAM tools import subnets with network, mask, and gateway columns.
Auditing router configurations
Interface prefixes from all routers are calculated together.
Documenting large estates
One table documents every subnet at a site or region.
Cleaning spreadsheets
Invalid lines in a shared spreadsheet are flagged in 1 run.