IP Subnet Calculator

Calculate IPv4 and IPv6 subnets: network, broadcast, netmask, wildcard and host range in CIDR notation, IPv6 prefixes, and split networks into subnets.

Runs locally in your browser
11000000101010000000000100001010
Network (24) Host (8)
CIDR notation192.168.1.0/24
Network address192.168.1.0
Broadcast address192.168.1.255
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
First host192.168.1.1
Last host192.168.1.254
Usable hosts254
Total addresses256
Address typePrivate (RFC 1918)
ClassC
Binary address11000000.10101000.00000001.00001010
Binary mask11111111.11111111.11111111.00000000
Hexadecimal0xC0A8010A
Integer3232235786
Reverse DNS10.1.168.192.in-addr.arpa
Split into subnets
#CIDR notationHost rangeBroadcast address
1192.168.1.0/26192.168.1.1 – 192.168.1.62192.168.1.63
2192.168.1.64/26192.168.1.65 – 192.168.1.126192.168.1.127
3192.168.1.128/26192.168.1.129 – 192.168.1.190192.168.1.191
4192.168.1.192/26192.168.1.193 – 192.168.1.254192.168.1.255

About this tool

A subnet is a contiguous block of IP addresses. In CIDR notation such as 192.168.1.0/24, the number after the slash says how many bits belong to the network part – the rest is for devices (hosts). A /24 has 256 addresses, of which 254 can be used for devices.

The subnet calculator takes an IPv4 address with prefix or subnet mask and calculates all key values: network address, broadcast, subnet mask, wildcard mask, first and last host and the number of usable addresses. The binary view highlights network and host bits. You can also split a network into smaller subnets – e.g. to divide a /24 into several VLANs. IPv6 prefixes like 2001:db8::/48 work too, including address type and short or full notation.

How it works

  1. Enter an IP address with prefix, e.g. 10.0.0.25/22, or set the prefix length with the slider.
  2. Read network address, broadcast, host range and masks from the overview.
  3. Choose a new, longer prefix under “Split into subnets”.
  4. The list shows every subnet with its host range – ideal for planning VLANs or cloud networks.

Frequently asked questions

Why are only 254 hosts usable in a /24?

The first address of a subnet is the network address, the last one the broadcast address. Neither can be assigned to a device. Exceptions are /31 (point-to-point links, RFC 3021) and /32 (single address).

What is a wildcard mask?

The wildcard mask is the inverted subnet mask: 255.255.255.0 becomes 0.0.0.255. It is used e.g. in Cisco ACLs and OSPF.

Which IP ranges are private?

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks. The calculator shows the address type automatically, including special ranges like loopback or CGNAT. Find your public address with What Is My IP?.

Can I enter a subnet mask instead of a prefix?

Yes, e.g. 192.168.1.10 255.255.255.0. The mask must be contiguous – 255.255.0.255 is invalid.

Is IPv6 supported?

Yes. Just enter an IPv6 address with prefix, e.g. 2001:db8:abcd:12::1/64. The calculator shows the network, the first and last address, the number of addresses and /64 networks, the address type (e.g. global unicast, unique local, link-local) and the ip6.arpa name. IPv6 has no broadcast address; networks are usually split at four-bit boundaries (/48 → /52 → /56 → /64).