Skip to main content

IP Subnet & CIDR Calculator

Input

An address with a prefix length (10.0.0.0/8) or a netmask (10.0.0.0/255.0.0.0), or a single address. IPv4 and IPv6.

Examples:

Results

Press Calculate or Ctrl/⌘+Enter to see the result.

Everything is processed in your browser. Nothing is uploaded.

About this tool: IP Subnet & CIDR Calculator

Calculate IPv4 and IPv6 CIDR blocks: network address, broadcast address, usable host range, netmask, wildcard mask, host count and a binary view, with private and reserved ranges labelled. You can split a block into smaller subnets, and check which blocks in a list contain a given address or overlap each other.

Common uses

  • Planning VPC or office network subnets
  • Checking whether an IP falls inside an allow-list
  • Finding overlapping ranges in firewall rules

Frequently asked questions

How many hosts are in a /24?
A /24 has 256 addresses, of which 254 are usable for hosts in IPv4 because the network and broadcast addresses are reserved.
Does it support IPv6?
Yes. IPv6 blocks show their range and size, though there are no broadcast addresses in IPv6.
What is a wildcard mask?
The inverse of the netmask, used in some router and ACL syntaxes. For /24 the netmask is 255.255.255.0 and the wildcard is 0.0.0.255.