IPv4 & IPv6 Subnet Calculator
Calculate IPv4 and IPv6 CIDR networks, split and size subnets, check allocation overlaps, and convert address ranges to CIDR blocks.
Network Input
Network Details
Binary View
| Octet 1 | Octet 2 | Octet 3 | Octet 4 | |
|---|---|---|---|---|
| IP | 11000000 10101000 00000001 00000001 | |||
| Mask | 11111111 11111111 11111111 00000000 | |||
| Wildcard | 00000000 00000000 00000000 11111111 | |||
| Network | 11000000 10101000 00000001 00000000 | |||
| Broadcast | 11000000 10101000 00000001 11111111 | |||
Subnet Splitter
| # | Network | First Usable | Last Usable | Broadcast | Hosts |
|---|---|---|---|---|---|
| 1 | 192.168.1.0 | 192.168.1.1 | 192.168.1.62 | 192.168.1.63 | 62 |
| 2 | 192.168.1.64 | 192.168.1.65 | 192.168.1.126 | 192.168.1.127 | 62 |
| 3 | 192.168.1.128 | 192.168.1.129 | 192.168.1.190 | 192.168.1.191 | 62 |
| 4 | 192.168.1.192 | 192.168.1.193 | 192.168.1.254 | 192.168.1.255 | 62 |
Reverse Sizing
IPv6 CIDR calculator
IPv6 has 128-bit addresses and no broadcast address. Counts below are total addresses, not usable-host counts.
Canonical address: 2001:db8::1/64
Network: 2001:db8::/64
Last address: 2001:db8::ffff:ffff:ffff:ffff
Total addresses: 18446744073709551616
IPv4 VLSM planner
Enter a parent network and positive host counts. Requirements are allocated largest-first; /31 and /32 follow point-to-point and single-address conventions.
| Requirement | Hosts | Network | Prefix | Broadcast | Capacity | Waste |
|---|---|---|---|---|---|---|
| #1 | 100 | 192.168.1.0 | /25 | 192.168.1.127 | 126 | 26 |
| #2 | 50 | 192.168.1.128 | /26 | 192.168.1.191 | 62 | 12 |
| #3 | 20 | 192.168.1.192 | /27 | 192.168.1.223 | 30 | 10 |
Check a CIDR network plan
Enter up to 32 IPv4 or IPv6 CIDR blocks, one per line. Optionally add a label before a vertical bar, such asapp | 10.1.0.0/16. Address data stays in this browser.
Convert an address range to CIDR
Convert an inclusive start and end address into the smallest aligned set of IPv4 or IPv6 CIDR blocks. The result contains exactly the addresses in the range. Output is capped at 256 blocks.
| CIDR block | First address | Last address | Address count |
|---|---|---|---|
| 192.0.2.0/24 | 192.0.2.0 | 192.0.2.255 | 256 |
How to use this subnet calculator
Enter an IPv4 or IPv6 address with a CIDR prefix to calculate its network range and address capacity.
- Enter an address and prefix, or enter an IPv4 address with a dotted subnet mask.
- Review network details, then split the IPv4 range or plan up to 32 VLSM requirements.
- Copy a result or download the generated subnet table as CSV.
Subnet Calculator features
Calculate IPv4 and IPv6 CIDR networks, split and size subnets, check a network plan for overlaps, and convert address ranges into CIDR blocks in your browser.
- IPv4 CIDR and dotted-mask calculations with binary output
- IPv6 network, last-address, canonical notation, and exact address counts
- Equal IPv4 subnet splitting, reverse sizing, and host-based VLSM allocation
- Check up to 32 IPv4 and IPv6 CIDR blocks for overlap and containment
- Convert inclusive IPv4 or IPv6 address ranges to at most 256 exact CIDR blocks
- Copy results or download subnet, plan, and range tables as CSV
- Address calculations run locally in your browser
Subnet Calculator FAQ
What does a CIDR prefix mean?
A CIDR prefix is the number of leading network bits in an IP address, such as /24 for IPv4 or /64 for IPv6.
Does IPv6 have a broadcast address?
No. IPv6 uses multicast rather than broadcast, so this calculator shows the network, last address, and total address count instead.
How does the VLSM planner allocate subnets?
It sorts requested IPv4 host counts from largest to smallest, assigns the smallest fitting aligned CIDR block, and reports capacity and unused hosts.
How does the CIDR plan checker report overlaps?
It compares every pair of valid IPv4 and IPv6 CIDR blocks and reports identical ranges, containment, and contained-by relationships.
How does address range to CIDR conversion work?
It decomposes the inclusive start and end addresses into the smallest aligned CIDR blocks that cover exactly that range, with a maximum of 256 output blocks.
Are my addresses sent to a server?
No. Address calculations and CSV generation run in this browser page; entered values are not sent to a server.