🌐IP Subnet Calculator

Calculate IPv4 subnets from CIDR notation. Network address, broadcast, host count, and mask conversion.

Enter an IP with a CIDR prefix (e.g. 10.0.0.5/8) or with a subnet mask (e.g. 10.0.0.5 255.0.0.0).

Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Subnet Mask
255.255.255.0 (/24)
Usable Hosts
254
IP Range (Usable)
192.168.1.1 - 192.168.1.254
IP Type
Private (192.168.0.0/16)Class C
Binary Representation
IP Address11000000.10101000.00000001.00000001
Subnet Mask11111111.11111111.11111111.00000000
Network Address11000000.10101000.00000001.00000000

About IP Subnet Calculator

A powerful IPv4 subnet calculator that parses CIDR notation and instantly computes the network address, broadcast address, available host count, subnet mask, and IP class. Essential for network engineers, sysadmins, and anyone managing IP infrastructure. Runs entirely in your browser.

Features

  • Parse IPv4 CIDR notation (e.g. 192.168.1.0/24)
  • Calculate network and broadcast addresses
  • Compute available host count per subnet
  • Convert between subnet mask formats (dotted and CIDR)
  • Detect IP class (A, B, C, private ranges)

Frequently Asked Questions

What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation is a compact way to represent an IP network by appending a slash and prefix length to an address, for example 192.168.1.0/24, which defines the network and how many bits are used for the network portion.
How is the available host count calculated?
For a subnet with prefix length /n, the available host count is 2^(32-n) minus 2, where one address is reserved for the network and one for the broadcast.