IP Subnet & CIDR Calculator

Enter an IP address with CIDR prefix (e.g. 192.168.1.0/24) or IP + subnet mask. Get network address, broadcast, usable range, total hosts, binary breakdown, and subnet splitting. 100% client-side.

Quick: /24 /16 /12 /8 /28 /27 /22

🟢📖 How It Works

CIDR (Classless Inter-Domain Routing) notation compactly specifies an IP address range using a suffix: 192.168.1.0/24. The number after the / is the prefix length —the count of bits in the network portion of the address.

  • Network Address —the first address in the subnet (all host bits = 0). Identifies the subnet itself.
  • Broadcast Address —the last address in the subnet (all host bits = 1). Used to send to all hosts.
  • Usable Host Range —everything between network and broadcast. Formula: 2^(32-prefix) - 2.
  • Subnet Mask —the bitmask that separates network bits from host bits. /24 = 255.255.255.0.
  • Wildcard Mask —the inverse of the subnet mask (used in ACLs and OSPF).

Common private ranges: 10.0.0.0/8 (16.7M hosts), 172.16.0.0/12 (1M hosts), 192.168.0.0/16 (65K hosts). All calculations happen in your browser.