What is a subnet splitter?
A subnet splitter divides one IPv4 network into several smaller, equal subnets. It's the core of IP address planning: carving a company's allocation into a subnet per site, VLAN, department or cloud availability zone without any ranges overlapping.
Enter the parent network in CIDR notation and choose how to split it: the number of subnets you need, the number of usable hosts each must hold, or a new prefix length. The result gives the number of subnets, their mask and size, and a table of every subnet with its usable range, broadcast address and host count.
How to use the Subnet splitter
1.Enter the network
With its prefix, like 10.20.0.0/22.
2.Choose how to split
By number of subnets, hosts each needs, or the new prefix.
3.Copy the table
Every subnet with its usable range and broadcast.
Example: six VLANs from a /22
Splitting 10.20.0.0/22 into at least 6 subnets:
- Result
- 8 subnets of /25, mask 255.255.255.128
- Hosts each
- 126
- First / last
- 10.20.0.0/25 … 10.20.3.128/25
extra bits = ⌈log₂ 6⌉ = 3, so /22 + 3 = /25
Six VLANs get a /25 each, with two spare subnets for later.
Rounding to powers of two
Subnets must be powers of two in size, so requests round up. Asking for 6 subnets from a /22 gives 8 subnets of /25, because 6 needs 3 extra network bits. Asking for 50 hosts each gives /26 subnets with 62 usable addresses, since 50 hosts plus the network and broadcast addresses need 64.
The list shows up to 512 subnets; summary figures always cover the full split. If you need subnets of different sizes, split the largest first and then split one of its pieces again.
Frequently asked questions
Why did I get more subnets than I asked for?
Subnet counts must be powers of two, so 6 rounds up to 8. Leave the spares for growth.
Can subnets be different sizes?
Not in one split. Split again inside one of the results for variable-length subnetting.
Does it work for cloud VPCs?
Yes, but cloud providers often reserve extra addresses in each subnet, such as AWS reserving 5.
Can I copy the results?
Yes. Copy result includes the summary, and the table can be selected and pasted into a spreadsheet.
Related tools
Subnet calculator
Network, broadcast, host range and mask for any IPv4 address and prefix.
IP range to CIDR
Convert an IPv4 address range to the fewest CIDR blocks, or expand CIDR to a range.
IPv6 calculator
Expand, compress and classify IPv6 addresses and work out prefix ranges.
IP address converter
Convert IPv4 addresses between dotted, integer, hex, binary and IPv6 forms.
chmod calculator
Convert Unix file permissions between octal like 755 and symbolic like rwxr-xr-x.
JSON Formatter & Validator
Pretty-print, minify, sort and validate JSON with line-numbered errors.
More Developer tools
JSON & data
CSV tools
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table