Network Tools

IPv4 Subnet & CIDR Calculator

Enter an IPv4 address with a CIDR prefix or netmask to get its network, broadcast, usable host range and wildcard mask. Use it to plan VPC and VLAN subnets, split a network into equal blocks, or check whether an IP falls inside a range.

Private by design: anything you enter is processed in your browser only. It is never uploaded to or logged on our servers. Share links contain the network, the IP being checked and the split settings.

Examples:

Network vs Host Bits

Network (0) Host (0)

Subnet Details

Tip: click any value to copy it.

Is IP in this Range?

Enter an IPv4 address to test against the current network.

Subnet Splitter

# Subnet Usable Range Broadcast Usable Hosts

About IPv4 subnetting and CIDR

An IPv4 address is a 32-bit number, usually written as four decimal octets such as 192.168.1.10. A subnet mask splits those 32 bits into a network portion and a host portion. CIDR (Classless Inter-Domain Routing) notation expresses the mask as a prefix length: /24 means the first 24 bits identify the network, which is the same as the netmask 255.255.255.0.

For any subnet, the address with all host bits set to 0 is the network address and the address with all host bits set to 1 is the broadcast address. Neither can normally be assigned to a device, so a subnet with n host bits has 2n total addresses and 2n − 2 usable hosts. Two exceptions are handled here: a /31 is used for point-to-point links (RFC 3021) where both addresses are usable, and a /32 describes a single host route.

The wildcard mask is the bitwise inverse of the netmask and is used in Cisco ACLs and OSPF configuration. The subnet splitter divides a network into equal, smaller subnets — for example, splitting a /24 into four subnets produces four /26 networks of 62 usable hosts each — which is the basis of planning VLANs, cloud VPC subnets and firewall zones.

The calculator also identifies special-purpose ranges: private RFC 1918 space (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), carrier-grade NAT (100.64.0.0/10), loopback (127.0.0.0/8), link-local (169.254.0.0/16), documentation and multicast blocks. Legacy class (A–E) is shown for reference, although modern routing is classless. All calculations happen locally in your browser.

Related tools: find the public address your network uses on the internet with What Is My IP, and convert addresses or masks between decimal, hex and binary with the number base converter.

Reference Guide

CIDR prefixes from /8 to /32. Usable hosts subtract the network and broadcast addresses, except /31 (point-to-point, RFC 3021) and /32 (single host):

CIDRNetmaskWildcardTotal addressesUsable hosts
/8255.0.0.00.255.255.25516,777,21616,777,214
/9255.128.0.00.127.255.2558,388,6088,388,606
/10255.192.0.00.63.255.2554,194,3044,194,302
/11255.224.0.00.31.255.2552,097,1522,097,150
/12255.240.0.00.15.255.2551,048,5761,048,574
/13255.248.0.00.7.255.255524,288524,286
/14255.252.0.00.3.255.255262,144262,142
/15255.254.0.00.1.255.255131,072131,070
/16255.255.0.00.0.255.25565,53665,534
/17255.255.128.00.0.127.25532,76832,766
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122
/32255.255.255.2550.0.0.011

Quick mental subnetting: the block size is 256 minus the last non-zero mask octet. A /26 mask is 255.255.255.192, so the block size is 64 and the subnets of a /24 start at .0, .64, .128 and .192.

Special-purpose IPv4 ranges:

RangeAddressesPurpose
10.0.0.0/810.0.0.0 – 10.255.255.255Private network (RFC 1918)
172.16.0.0/12172.16.0.0 – 172.31.255.255Private network (RFC 1918)
192.168.0.0/16192.168.0.0 – 192.168.255.255Private network (RFC 1918), most home routers
100.64.0.0/10100.64.0.0 – 100.127.255.255Carrier-grade NAT shared address space (RFC 6598)
127.0.0.0/8127.0.0.0 – 127.255.255.255Loopback (localhost is 127.0.0.1)
169.254.0.0/16169.254.0.0 – 169.254.255.255Link-local, self-assigned when DHCP fails (RFC 3927)
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/243 × 256Documentation and examples (RFC 5737), never routed
198.18.0.0/15198.18.0.0 – 198.19.255.255Network benchmarking (RFC 2544)
224.0.0.0/4224.0.0.0 – 239.255.255.255Multicast
240.0.0.0/4240.0.0.0 – 255.255.255.254Reserved; 255.255.255.255 is the limited broadcast address

Cloud subnets reserve extra addresses, so you get fewer usable hosts than the table above:

ProviderReserved per subnetWhich addressesUsable in a /24
AWS VPC5Network address, .1 (VPC router), .2 (DNS), .3 (reserved) and the last address251
Azure VNet5Network address, .1 (default gateway), .2 and .3 (Azure DNS) and the last address251

AWS subnets must be between /16 and /28.

Example input

Network:   192.168.1.10/24
Check IP:  192.168.1.200
Split:     into 4 subnets (/26)

This sample loads automatically when you open the tool. Use Load Sample to bring it back.

Frequently Asked Questions

The number after the slash is the prefix length: how many leading bits identify the network. A /24 has a 255.255.255.0 netmask and 256 addresses, of which 254 are usable hosts.

The first address is the network address and the last is the broadcast address, so they cannot be assigned to hosts. The exceptions are /31 point-to-point links (RFC 3021) and /32 single-host routes.

A wildcard mask is the inverse of the subnet mask (for example 0.0.0.255 for a /24). It is used in Cisco ACLs and OSPF configuration to match a range of addresses.