IPv4 Subnet Calculator

Subnet Calculator

Enter any IP address and CIDR prefix to instantly calculate network address, broadcast, host range, subnet mask, wildcard mask and binary breakdown.

Input
IPv4 Address
or
Subnet Mask
CIDR Prefix Length
/
/0 /32 /24
Results
Network address
Broadcast address
First usable host
Last usable host
Usable hosts
Total addresses
Subnet mask
Wildcard mask
IP class
IP type
Short notation
Integer value
Binary representation

Blue = network bits  ·  Grey = host bits

Split network into subnets
New prefix length
/
Show first N subnets
Calculate a subnet above to see the split.
CIDR quick reference
CIDRSubnet maskUsable hostsTotal IPsWildcard
Networking reference
What is a subnet?
A subnet is a logical subdivision of an IP network. Subnetting splits a network into smaller segments to improve performance, security, and address management.
What is CIDR notation?
CIDR (Classless Inter-Domain Routing) uses a slash followed by a prefix length (e.g. /24) to define a network, replacing the old Class A/B/C system.
Private IP ranges (RFC 1918)
10.0.0.0/8 · 172.16.0.0/12 · 192.168.0.0/16. These ranges are reserved for private networks and are not routable on the public internet.
Wildcard mask
The inverse of the subnet mask. Used in ACLs and OSPF to specify which bits of an IP address should be ignored during matching.