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

Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Total Addresses
256
Usable Hosts
254
First Usable Host
192.168.1.1
Last Usable Host
192.168.1.254
Address model
IPv4 (classless)
Special-use scope
Private-use (192.168/16)

Binary View

Octet 1Octet 2Octet 3Octet 4
IP11000000 10101000 00000001 00000001
Mask11111111 11111111 11111111 00000000
Wildcard00000000 00000000 00000000 11111111
Network11000000 10101000 00000001 00000000
Broadcast11000000 10101000 00000001 11111111

Subnet Splitter

#NetworkFirst UsableLast UsableBroadcastHosts
1192.168.1.0192.168.1.1192.168.1.62192.168.1.6362
2192.168.1.64192.168.1.65192.168.1.126192.168.1.12762
3192.168.1.128192.168.1.129192.168.1.190192.168.1.19162
4192.168.1.192192.168.1.193192.168.1.254192.168.1.25562

Reverse Sizing

Enter the number of usable hosts you need.

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.

RequirementHostsNetworkPrefixBroadcastCapacityWaste
#1100192.168.1.0/25192.168.1.12712626
#250192.168.1.128/26192.168.1.1916212
#320192.168.1.192/27192.168.1.2233010

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 blockFirst addressLast addressAddress count
192.0.2.0/24192.0.2.0192.0.2.255256

How to use this subnet calculator

Enter an IPv4 or IPv6 address with a CIDR prefix to calculate its network range and address capacity.

  1. Enter an address and prefix, or enter an IPv4 address with a dotted subnet mask.
  2. Review network details, then split the IPv4 range or plan up to 32 VLSM requirements.
  3. 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.

Infinio Tools
© 2026 Infinio Labs