IP Subnet Calculator — IPv4 Network Mask & Range Splitter
Enter any IPv4 CIDR to see full subnet details (network address, broadcast, usable hosts, subnet mask, wildcard) and optionally split the network into N equal subnets. Outputs a complete table of subnet ranges for VLAN planning, cloud VPC design, and network segmentation.
How to Use IP Subnet Calculator — IPv4 Network Mask & Range Splitter
How to Use the IP Subnet Planner:
Enter the Parent Network CIDR: Type or paste an IPv4 CIDR into the Network CIDR field. The format is an IP address followed by a slash and prefix length, such as 192.168.1.0/24 or 10.0.0.0/16. The tool auto-calculates subnet details as you type — no button press needed.
Review the Parent Subnet Details: Once a valid CIDR is entered, the Parent Subnet section shows network address, broadcast address, first and last usable host, subnet mask, wildcard mask, total IPs, and usable host count. Tags show the IP class and whether the network is private (RFC 1918) or public.
Enter a Split Count (Optional): To divide the parent network into equal subnets, type a number between 2 and 512 in the "Split into N subnets" field. The tool automatically selects the smallest prefix that can accommodate N subnets — for example, splitting a /24 into 4 subnets produces 4 × /26.
Read the Subnet Split Table: The split table lists each subnet with its CIDR, network address, first host, last host, broadcast address, and usable host count. The table header shows how many subnets are displayed versus how many are possible (since the tool rounds up to the next power of 2 and shows only the N you requested).
Copy Any Value: Hover over any address cell in the details grid and click the copy icon that appears. In the split table, click any cell directly to copy its value to the clipboard.
Use Quick Examples: Click any example button to load a preset CIDR and split count. Examples cover a home LAN ÷ 4, an office /16 ÷ 8, data centre VLANs, a Class A divided into 256 subnets, and a multi-site /20 split into sixteen /24s.
Understand the Prefix Math: When splitting into N subnets, the tool calculates bits_added = ceil(log2(N)) and adds that to the parent prefix. Three subnets requires 2 extra bits (2² = 4 possible, 3 shown). The table header always tells you the actual possible count so you know how many subnets are left unallocated.
Clear and Start Over: Click Clear to reset both inputs and start fresh with a different network.
Common Use Cases:
- VLAN planning: Divide a corporate /16 into department-sized /24 or /22 subnets.
- Cloud VPC design: Split an AWS or Azure VPC CIDR into availability zone subnets.
- Home lab setup: Divide a 192.168.0.0/24 into separate segments for devices, IoT, and servers.
- Data centre rack allocation: Allocate /27 or /28 blocks from a larger pool to server racks.
- ISP address management: Split provider blocks into customer allocations.
- Kubernetes networking: Plan pod and service CIDRs from a parent range.
- Firewall rule writing: Look up network and broadcast addresses to write accurate ACLs.
- Study and certification prep: Visualise subnet boundaries for CCNA, CCNP, or Network+ exams.
Tips and Best Practices:
- The tool rounds N up to the next power of 2 — splitting into 5 subnets uses a /3 block (8 possible), showing only 5.
- A /24 (254 hosts) is the most common LAN block; split it into 2 = two /25s (126 hosts each).
- Use the wildcard mask directly in Cisco ACLs and OSPF network statements.
- For /31 links (RFC 3021), both addresses are usable and there is no broadcast — ideal for router-to-router links.
- To create subnets of different sizes (true VLSM), run multiple calculations: first allocate the largest subnets, then use the remaining space for smaller ones.
- Private ranges (RFC 1918): 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 — these are not routed on the public internet.
- When designing cloud subnets, reserve at least one subnet per availability zone plus a spare for future growth.
- The maximum displayable split is 512 subnets; for larger allocations run multiple smaller splits.
Frequently Asked Questions
Most Viewed Tools
Screen Size Converter — Diagonal Dimension Tool
Calculate screen width and height from diagonal size and aspect ratio. Convert between inches and centimeters for displays, TVs, and monitors with instant dimension calculations.
Use Tool →DPI Calculator — Print Resolution Tool
Calculate DPI (dots per inch), image dimensions, and print sizes. Convert between pixels and physical dimensions for printing and displays.
Use Tool →TOTP Code Generator — 2FA Testing Tool
Generate time-based one-time passwords from a TOTP secret key. Enter your base32 secret, choose a period and digit length, and get the current and next codes with a live countdown timer. Useful for testing and debugging 2FA integrations.
Use Tool →Seconds to Time Converter — HH:MM:SS Formatter
Convert seconds to HH:MM:SS time format instantly with precise calculations and easy-to-read formatting.
Use Tool →Password Entropy Calculator — Crack Time Estimator
Calculate the information-theoretic bit entropy of any password or API key. Detects character set pools automatically, shows the total number of possible combinations, and estimates crack time across five attack scenarios from rate-limited web logins to GPU cracking clusters.
Use Tool →JSONL Formatter — Line-by-Line Validator
Format, validate, and inspect JSON Lines (JSONL) and NDJSON files. Validates each line individually, reports parse errors by line number, outputs compact JSONL or a pretty-print preview, and lets you download the cleaned file.
Use Tool →JSON to Zod — Schema Generator
Generate Zod validation schema code from a JSON sample object. Infers z.string(), z.number(), z.boolean(), z.array(), z.object(), and z.null() types automatically. Handles nested objects, arrays of objects with optional field detection, and outputs copy-ready TypeScript with import and z.infer type alias.
Use Tool →TLS Cipher Suite Checker — Strength Analyzer
Check TLS protocol version compatibility and cipher suite strength ratings against current best practices. Supports IANA and OpenSSL cipher names — rates each suite as Strong, Weak, or Deprecated and explains why.
Use Tool →Related DevOps & Infrastructure Tools
GitHub Actions Matrix Generator — Build, Validate & Optimize CI/CD Matrices
Define OS and runtime version combinations and generate the strategy.matrix configuration block
Use Tool →Docker Memory Limit Calculator — Model Limits, Swap & OOM Protection
Calculate appropriate container memory limits based on JVM or Node.js heap settings and OS overhead
Use Tool →AWS S3 CORS Generator — Build, Audit, and Export S3 CORS Policies
Configure allowed origins/methods/headers and generate the S3 bucket CORS JSON policy
Use Tool →User Agent Parser — Browser & Device Decoder
Parse user agent strings to extract browser, operating system, device, and engine information. Essential for web analytics, device detection, and browser compatibility testing.
Use Tool →Random User Agent Generator — Browser String Tool
Generate random browser user agent strings for testing and development.
Use Tool →Sitemap Validator — XML Sitemap Checker
Validate XML sitemaps against the sitemap protocol specification. Checks structure, required fields, URL count, changefreq values, and priority ranges. Supports both URL sitemaps and sitemap index files. Free and runs entirely in your browser.
Use Tool →Cron Expression Validator — Schedule Checker
Validate cron expressions, get a plain-English explanation of what they mean, and see the next scheduled run times — all in your browser.
Use Tool →OpenTelemetry Span Builder — Construct, Validate, and Export OTel Spans
Configure span name and attributes and events and generate OpenTelemetry span setup code for popular SDKs
Use Tool →Share Your Feedback
Help us improve this tool by sharing your experience